mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-18 02:21:13 +00:00
refactor(core): Centralize scaling mode (no-changelog) (#9835)
This commit is contained in:
@@ -4,8 +4,8 @@ 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 { Queue } from '@/Queue';
|
||||
import { BaseCommand } from './BaseCommand';
|
||||
|
||||
import { OrchestrationWebhookService } from '@/services/orchestration/webhook/orchestration.webhook.service';
|
||||
@@ -96,7 +96,7 @@ export class Webhook extends BaseCommand {
|
||||
);
|
||||
}
|
||||
|
||||
await Container.get(Queue).init();
|
||||
await Container.get(ScalingService).setupQueue();
|
||||
await this.server.start();
|
||||
this.logger.debug(`Webhook listener ID: ${this.server.uniqueInstanceId}`);
|
||||
this.logger.info('Webhook listener waiting for requests.');
|
||||
|
||||
Reference in New Issue
Block a user