diff --git a/packages/core/src/WorkflowExecute.ts b/packages/core/src/WorkflowExecute.ts index 9e1dd8e914a387..4031a51698deee 100644 --- a/packages/core/src/WorkflowExecute.ts +++ b/packages/core/src/WorkflowExecute.ts @@ -746,8 +746,8 @@ export class WorkflowExecute { const returnPromise = (async () => { try { - const { executionId, restartExecutionId } = this.additionalData; - if (restartExecutionId !== executionId) { + const { restartExecutionId } = this.additionalData; + if (!restartExecutionId) { await this.executeHook('workflowExecuteBefore', [workflow]); } } catch (error) {