mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(core): Allow graceful shutdown for main with active executions (#9661)
This commit is contained in:
parent
4e568631be
commit
4b345bec03
|
@ -98,9 +98,9 @@ export class Start extends BaseCommand {
|
|||
|
||||
await this.externalHooks?.run('n8n.stop', []);
|
||||
|
||||
if (Container.get(OrchestrationService).isMultiMainSetupEnabled) {
|
||||
await this.activeWorkflowManager.removeAllTriggerAndPollerBasedWorkflows();
|
||||
await this.activeWorkflowManager.removeAllTriggerAndPollerBasedWorkflows();
|
||||
|
||||
if (Container.get(OrchestrationService).isMultiMainSetupEnabled) {
|
||||
await Container.get(OrchestrationService).shutdown();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue