mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 11:22:15 +00:00
fix(core): Allow graceful shutdown for main with active executions (#9661)
This commit is contained in:
@@ -98,9 +98,9 @@ export class Start extends BaseCommand {
|
|||||||
|
|
||||||
await this.externalHooks?.run('n8n.stop', []);
|
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();
|
await Container.get(OrchestrationService).shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user