mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
fix(core): Allow running webhook servers in multi-main mode (#13989)
This commit is contained in:
committed by
GitHub
parent
401ed2ce11
commit
e0fd50554d
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user