bullmq icon indicating copy to clipboard operation
bullmq copied to clipboard

Implement wildcard listeners

Open Mihailoff opened this issue 5 months ago • 1 comments

Why

https://github.com/taskforcesh/bullmq/issues/3334

Ability to listen on any event:

consumer.on('*', (eventName, eventData) => {
  console.log(`Received event: ${eventName}`, eventData);
});

I'm not very familiar with the code base, hopefully, this is the right direction.

Mihailoff avatar Jul 07 '25 20:07 Mihailoff

@manast what do you think about such design in general?

I tend to think that it is not the best choice and instead it should be something like example below without magical *.

queueEvents.onAll(handler)

In my case I ended up with a direct Redis consumer group listener to get full control of it.

Mihailoff avatar Jul 11 '25 17:07 Mihailoff