diff --git a/packages/cli/src/commands/start.ts b/packages/cli/src/commands/start.ts index 991d19e9d4..db53900de2 100644 --- a/packages/cli/src/commands/start.ts +++ b/packages/cli/src/commands/start.ts @@ -60,7 +60,7 @@ export class Start extends BaseCommand { }), }; - protected activeWorkflowRunner = Container.get(ActiveWorkflowRunner); + protected activeWorkflowRunner: ActiveWorkflowRunner; /** * Opens the UI in browser @@ -200,6 +200,7 @@ export class Start extends BaseCommand { await this.initCrashJournal(); await super.init(); this.logger.info('Initializing n8n process'); + this.activeWorkflowRunner = Container.get(ActiveWorkflowRunner); await this.initLicense(); await this.initBinaryManager();