Skip to content

Commit

Permalink
fix(core): Don't execute 'workflowExecuteBefore' hook on execution co…
Browse files Browse the repository at this point in the history
…ntinuations (#9905)
  • Loading branch information
despairblue authored and jeanpaul committed Jul 11, 2024
1 parent d034430 commit a53cdbb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/cli/src/WorkflowRunner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}

Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a53cdbb

Please sign in to comment.