Skip to content

Commit

Permalink
fix: Workflows executed from other workflows not stopping (#9010)
Browse files Browse the repository at this point in the history
  • Loading branch information
valya authored and despairblue committed Apr 4, 2024
1 parent 8fa755a commit 09e397b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/cli/src/WorkflowExecuteAdditionalData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 09e397b

Please sign in to comment.