From 53a20dddce29413d2505a5e11d05d55a04fbe52c Mon Sep 17 00:00:00 2001 From: Omar Ajoue Date: Fri, 19 Mar 2021 15:18:35 +0100 Subject: [PATCH] :bug: Fix issue with subworkflows running on main process (#1557) --- packages/cli/src/WorkflowExecuteAdditionalData.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/src/WorkflowExecuteAdditionalData.ts b/packages/cli/src/WorkflowExecuteAdditionalData.ts index 562169980b..92f6a93afc 100644 --- a/packages/cli/src/WorkflowExecuteAdditionalData.ts +++ b/packages/cli/src/WorkflowExecuteAdditionalData.ts @@ -625,6 +625,7 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi return returnData!.data!.main; } } else { + await ActiveExecutions.getInstance().remove(executionId, data); // Workflow did fail const error = new Error(data.data.resultData.error!.message); error.stack = data.data.resultData.error!.stack;