fix(core): Allow graceful shutdown for main with active executions (#9661)

This commit is contained in:
Iván Ovejero
2024-06-07 10:58:26 +02:00
committed by GitHub
parent 4e568631be
commit 4b345bec03

View File

@@ -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();
}