Skip to content

Commit

Permalink
fix(core): Initialize queue in the webhook server as well (#5766)
Browse files Browse the repository at this point in the history
fix(core): Initialize queue in the webhook server as well (no-changelog)
  • Loading branch information
netroy authored Mar 24, 2023
1 parent d78a41d commit e67ad29
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/cli/src/commands/webhook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { LoggerProxy, sleep } from 'n8n-workflow';
import config from '@/config';
import { ActiveExecutions } from '@/ActiveExecutions';
import { WebhookServer } from '@/WebhookServer';
import { Queue } from '@/Queue';
import { BaseCommand } from './BaseCommand';
import { Container } from 'typedi';

Expand Down Expand Up @@ -79,6 +80,7 @@ export class Webhook extends BaseCommand {
}

async run() {
await Container.get(Queue).init();
await new WebhookServer().start();
this.logger.info('Webhook listener waiting for requests.');

Expand Down

0 comments on commit e67ad29

Please sign in to comment.