mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Do not load ScalingService in regular mode (no-changelog) (#10333)
This commit is contained in:
committed by
GitHub
parent
eef4fb8bb4
commit
1869c396f3
@@ -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}`);
|
||||
|
||||
Reference in New Issue
Block a user