Closed oanguenot closed 1 month ago
hi @oanguenot, I assuming you are confusing QueueListener with QueueEventsListener https://api.docs.bullmq.io/interfaces/v5.QueueListener.html#cleaned https://api.docs.bullmq.io/interfaces/v5.QueueListener.html#waiting https://api.docs.bullmq.io/interfaces/v5.QueueEventsListener.html#cleaned https://api.docs.bullmq.io/interfaces/v5.QueueEventsListener.html#waiting QueueListener is for Queue class
You're right. Thanks for your feedback. I will close this issue
Version
v5.7.1
Platform
NodeJS
What happened?
Documentation is incorrect for the 2 following events:
cleaned
: This event returns an array and not anObject
with a parametercount
waiting
: This event contains theJob
that enters the waiting state and not thejobId
How to reproduce.
Listen to these events
queue.on("cleaned", (jobs) => { console.log(jobs); });
queue.on("waiting", (job) => { console.log(job); });
Relevant log output
No response
Code of Conduct