fix(core): Override executions mode if regular during worker startup (#11250)

This commit is contained in:
Iván Ovejero
2024-10-14 16:12:41 +02:00
committed by GitHub
parent 4bd4b6977a
commit c0aa28c6cf
2 changed files with 8 additions and 0 deletions

View File

@@ -61,6 +61,10 @@ export class Worker extends BaseCommand {
constructor(argv: string[], cmdConfig: Config) {
if (!process.env.N8N_ENCRYPTION_KEY) throw new WorkerMissingEncryptionKey();
if (config.getEnv('executions.mode') !== 'queue') {
config.set('executions.mode', 'queue');
}
super(argv, cmdConfig);
this.logger = Container.get(Logger).withScope('scaling');