mirror of
https://github.com/n8n-io/n8n.git
synced 2025-01-11 04:47:29 -08:00
⚡ Reduce risk of errors causing never stopping workflows
This commit is contained in:
parent
8cceec1209
commit
e40f0e00a8
|
@ -212,12 +212,6 @@ export class WorkflowRunner {
|
|||
workflowExecution = workflowExecute.runPartialWorkflow(workflow, data.runData, data.startNodes, data.destinationNode);
|
||||
}
|
||||
|
||||
} catch (error) {
|
||||
await this.processError(error, new Date(), data.executionMode, executionId, additionalData.hooks);
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
this.activeExecutions.attachWorkflowExecution(executionId, workflowExecution);
|
||||
|
||||
if (workflowTimeout > 0) {
|
||||
|
@ -237,6 +231,12 @@ export class WorkflowRunner {
|
|||
this.processError(error, new Date(), data.executionMode, executionId, additionalData.hooks);
|
||||
});
|
||||
|
||||
} catch (error) {
|
||||
await this.processError(error, new Date(), data.executionMode, executionId, additionalData.hooks);
|
||||
|
||||
throw error;
|
||||
}
|
||||
|
||||
return executionId;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue