From 8749ba16f84209d337f2e1a8896c7573586d4d3b Mon Sep 17 00:00:00 2001 From: Junyi Date: Fri, 23 Aug 2024 18:01:27 +0800 Subject: [PATCH] fix(plugin-workflow-parallel): fix missed transaction causing dead lock in mysql (#5118) --- .../plugin-workflow-parallel/src/server/ParallelInstruction.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts index 5c0b7144d1..812ad58d8d 100644 --- a/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts +++ b/packages/plugins/@nocobase/plugin-workflow-parallel/src/server/ParallelInstruction.ts @@ -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(); }