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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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();
if (Container.get(OrchestrationService).isMultiMainSetupEnabled) {
await Container.get(OrchestrationService).shutdown();
}