From 0ac985133be546f068f7f25b340c3bfdecadc08e Mon Sep 17 00:00:00 2001 From: Val <68596159+valya@users.noreply.github.com> Date: Thu, 4 Apr 2024 10:02:37 +0100 Subject: [PATCH] fix: Workflows executed from other workflows not stopping (#9010) --- packages/cli/src/WorkflowExecuteAdditionalData.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/cli/src/WorkflowExecuteAdditionalData.ts b/packages/cli/src/WorkflowExecuteAdditionalData.ts index c5507e457..4ec7d31e3 100644 --- a/packages/cli/src/WorkflowExecuteAdditionalData.ts +++ b/packages/cli/src/WorkflowExecuteAdditionalData.ts @@ -851,7 +851,9 @@ async function executeWorkflow( workflowExecute, }; } - data = await workflowExecute.processRunExecutionData(workflow); + const execution = workflowExecute.processRunExecutionData(workflow); + activeExecutions.attachWorkflowExecution(executionId, execution); + data = await execution; } catch (error) { const executionError = error ? (error as ExecutionError) : undefined; const fullRunData: IRun = {