Skip to content

Commit

Permalink
fix(core): Allow graceful shutdown for main with active executions (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ivov authored and netroy committed Jun 12, 2024
1 parent 1057c81 commit 486a290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/cli/src/commands/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down

0 comments on commit 486a290

Please sign in to comment.