fix(core): Allow running webhook servers in multi-main mode (#13989)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-03-18 13:59:20 +01:00
committed by GitHub
parent 401ed2ce11
commit e0fd50554d

View File

@@ -1,6 +1,5 @@
import { Container } from '@n8n/di';
import { Flags } from '@oclif/core';
import { UserError } from 'n8n-workflow';
import { ActiveExecutions } from '@/active-executions';
import config from '@/config';
@@ -83,10 +82,6 @@ export class Webhook extends BaseCommand {
}
async run() {
if (this.globalConfig.multiMainSetup.enabled) {
throw new UserError('Webhook process cannot be started when multi-main setup is enabled.');
}
const { ScalingService } = await import('@/scaling/scaling.service');
await Container.get(ScalingService).setupQueue();
await this.server.start();