mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 06:34:05 -08:00
fix(core): Initialize queue in the webhook server as well (#5766)
fix(core): Initialize queue in the webhook server as well (no-changelog)
This commit is contained in:
parent
d78a41db54
commit
e67ad29625
|
@ -3,6 +3,7 @@ import { LoggerProxy, sleep } from 'n8n-workflow';
|
||||||
import config from '@/config';
|
import config from '@/config';
|
||||||
import { ActiveExecutions } from '@/ActiveExecutions';
|
import { ActiveExecutions } from '@/ActiveExecutions';
|
||||||
import { WebhookServer } from '@/WebhookServer';
|
import { WebhookServer } from '@/WebhookServer';
|
||||||
|
import { Queue } from '@/Queue';
|
||||||
import { BaseCommand } from './BaseCommand';
|
import { BaseCommand } from './BaseCommand';
|
||||||
import { Container } from 'typedi';
|
import { Container } from 'typedi';
|
||||||
|
|
||||||
|
@ -79,6 +80,7 @@ export class Webhook extends BaseCommand {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run() {
|
async run() {
|
||||||
|
await Container.get(Queue).init();
|
||||||
await new WebhookServer().start();
|
await new WebhookServer().start();
|
||||||
this.logger.info('Webhook listener waiting for requests.');
|
this.logger.info('Webhook listener waiting for requests.');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue