fix(core): Do not load ScalingService in regular mode (no-changelog) (#10333)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2024-08-08 17:35:17 +02:00
committed by GitHub
parent eef4fb8bb4
commit 1869c396f3
6 changed files with 20 additions and 19 deletions

View File

@@ -4,7 +4,6 @@ import { ApplicationError } from 'n8n-workflow';
import config from '@/config';
import { ActiveExecutions } from '@/ActiveExecutions';
import { ScalingService } from '@/scaling/scaling.service';
import { WebhookServer } from '@/webhooks/WebhookServer';
import { BaseCommand } from './BaseCommand';
@@ -96,6 +95,7 @@ export class Webhook extends BaseCommand {
);
}
const { ScalingService } = await import('@/scaling/scaling.service');
await Container.get(ScalingService).setupQueue();
await this.server.start();
this.logger.debug(`Webhook listener ID: ${this.server.uniqueInstanceId}`);