Skip to content

Commit 0ac9851

Browse files
authored
fix: Workflows executed from other workflows not stopping (#9010)
1 parent 71c54cb commit 0ac9851

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/cli/src/WorkflowExecuteAdditionalData.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -851,7 +851,9 @@ async function executeWorkflow(
851851
workflowExecute,
852852
};
853853
}
854-
data = await workflowExecute.processRunExecutionData(workflow);
854+
const execution = workflowExecute.processRunExecutionData(workflow);
855+
activeExecutions.attachWorkflowExecution(executionId, execution);
856+
data = await execution;
855857
} catch (error) {
856858
const executionError = error ? (error as ExecutionError) : undefined;
857859
const fullRunData: IRun = {

0 commit comments

Comments
 (0)