fix(core): Tighten checks for multi-main setup usage (#7788)

https://n8nio.slack.com/archives/C05HRPLSGTT/p1700731476321999?thread_ts=1700729359.746899&cid=C05HRPLSGTT
This commit is contained in:
Iván Ovejero
2023-11-23 12:18:39 +01:00
committed by GitHub
parent 6208af07eb
commit fdb2c18ecc
6 changed files with 15 additions and 20 deletions

View File

@@ -117,7 +117,7 @@ export class Start extends BaseCommand {
this.pruningService.stopPruning();
}
if (config.getEnv('executions.mode') === 'queue' && config.getEnv('multiMainSetup.enabled')) {
if (Container.get(MultiMainSetup).isEnabled) {
await this.activeWorkflowRunner.removeAllTriggerAndPollerBasedWorkflows();
await Container.get(MultiMainSetup).shutdown();