fix(plugin-workflow-parallel): fix missed transaction causing dead lock in mysql (#5118)

This commit is contained in:
Junyi 2024-08-23 18:01:27 +08:00 committed by GitHub
parent fd28b468c9
commit 8749ba16f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -120,7 +120,7 @@ export default class extends Instruction {
});
if (job.status === JOB_STATUS.PENDING) {
await job.save();
await job.save({ transaction: processor.transaction });
return processor.exit();
}