🐛 Fix issue with subworkflows running on main process (#1557)

This commit is contained in:
Omar Ajoue 2021-03-19 15:18:35 +01:00 committed by GitHub
parent 30d83d0bc2
commit 53a20dddce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;