From adb83155ca9478a548e6fe926735d5872de10fea Mon Sep 17 00:00:00 2001 From: Danny Martini Date: Tue, 9 Jul 2024 15:11:33 +0200 Subject: [PATCH] fix(core): Don't execute 'workflowExecuteBefore' hook on execution continuations (#9905) --- packages/cli/src/WorkflowRunner.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/cli/src/WorkflowRunner.ts b/packages/cli/src/WorkflowRunner.ts index 8430d95327..fd92d1b8ac 100644 --- a/packages/cli/src/WorkflowRunner.ts +++ b/packages/cli/src/WorkflowRunner.ts @@ -146,7 +146,7 @@ export class WorkflowRunner { // frontend would not be possible await this.enqueueExecution(executionId, data, loadStaticData, realtime); } else { - await this.runMainProcess(executionId, data, loadStaticData, executionId); + await this.runMainProcess(executionId, data, loadStaticData, restartExecutionId); this.eventRelay.emit('workflow-pre-execute', { executionId, data }); } @@ -273,7 +273,6 @@ export class WorkflowRunner { pushRef: data.pushRef, }); - await additionalData.hooks.executeHookFunctions('workflowExecuteBefore', []); if (data.executionData !== undefined) { this.logger.debug(`Execution ID ${executionId} had Execution data. Running with payload.`, { executionId,