mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
🐛 Fix issue with subworkflows running on main process (#1557)
This commit is contained in:
parent
30d83d0bc2
commit
53a20dddce
|
@ -625,6 +625,7 @@ export async function executeWorkflow(workflowInfo: IExecuteWorkflowInfo, additi
|
||||||
return returnData!.data!.main;
|
return returnData!.data!.main;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
await ActiveExecutions.getInstance().remove(executionId, data);
|
||||||
// Workflow did fail
|
// Workflow did fail
|
||||||
const error = new Error(data.data.resultData.error!.message);
|
const error = new Error(data.data.resultData.error!.message);
|
||||||
error.stack = data.data.resultData.error!.stack;
|
error.stack = data.data.resultData.error!.stack;
|
||||||
|
|
Loading…
Reference in a new issue