mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
🐛 Fix issues with subworkflows not finishing (#1553)
This commit is contained in:
parent
575a2502b0
commit
b879755f0b
|
@ -121,7 +121,15 @@ export class WorkflowRunnerProcess {
|
||||||
resolve(executionId);
|
resolve(executionId);
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
const result: IRun = await executeWorkflowFunction(workflowInfo, additionalData, inputData, executionId, workflowData, runData);
|
let result: IRun;
|
||||||
|
try {
|
||||||
|
result = await executeWorkflowFunction(workflowInfo, additionalData, inputData, executionId, workflowData, runData);
|
||||||
|
} catch (e) {
|
||||||
|
await sendToParentProcess('finishExecution', { executionId });
|
||||||
|
// Throw same error we had
|
||||||
|
throw e;
|
||||||
|
}
|
||||||
|
|
||||||
await sendToParentProcess('finishExecution', { executionId, result });
|
await sendToParentProcess('finishExecution', { executionId, result });
|
||||||
|
|
||||||
const returnData = WorkflowHelpers.getDataLastExecutedNodeData(result);
|
const returnData = WorkflowHelpers.getDataLastExecutedNodeData(result);
|
||||||
|
|
Loading…
Reference in a new issue