bullmq
bullmq copied to clipboard
Implement wildcard listeners
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.
@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.