mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-09 22:24:05 -08:00
take shutdown and worfklow timeouts into account
This commit is contained in:
parent
d3b8776f20
commit
d61d563f48
|
@ -252,7 +252,7 @@ export class ActiveExecutions {
|
|||
await this.concurrencyControl.removeAll(this.activeExecutions);
|
||||
}
|
||||
|
||||
executionIds.forEach((executionId) => this.stopExecution(executionId));
|
||||
executionIds.forEach((executionId) => this.cancelExecution(executionId));
|
||||
}
|
||||
|
||||
let count = 0;
|
||||
|
|
|
@ -311,7 +311,7 @@ export class WorkflowRunner {
|
|||
if (workflowTimeout > 0) {
|
||||
const timeout = Math.min(workflowTimeout, config.getEnv('executions.maxTimeout')) * 1000; // as seconds
|
||||
executionTimeout = setTimeout(() => {
|
||||
void this.activeExecutions.stopExecution(executionId);
|
||||
void this.activeExecutions.cancelExecution(executionId);
|
||||
}, timeout);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue