mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Restore queue listeners for webhook process (#10781)
This commit is contained in:
@@ -209,8 +209,8 @@ export class ScalingService {
|
||||
throw error;
|
||||
});
|
||||
|
||||
if (this.instanceType === 'main') {
|
||||
this.registerMainListeners();
|
||||
if (this.instanceType === 'main' || this.instanceType === 'webhook') {
|
||||
this.registerMainOrWebhookListeners();
|
||||
} else if (this.instanceType === 'worker') {
|
||||
this.registerWorkerListeners();
|
||||
}
|
||||
@@ -246,9 +246,9 @@ export class ScalingService {
|
||||
}
|
||||
|
||||
/**
|
||||
* Register listeners on a `main` process for Bull queue events.
|
||||
* Register listeners on a `main` or `webhook` process for Bull queue events.
|
||||
*/
|
||||
private registerMainListeners() {
|
||||
private registerMainOrWebhookListeners() {
|
||||
this.queue.on('global:progress', (_jobId: JobId, msg: unknown) => {
|
||||
if (!this.isPubSubMessage(msg)) return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user