OptimalBits / bull

Premium Queue package for handling distributed jobs and messages in NodeJS.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question about having drained event even when there is active job

piotrekfracek opened this issue · comments

Hey,
I have a question about drained event being fired when there is still an active job being processed.
Is that correct behavior? Shouldn't it be fired when there is nothing more to be processed and no active jobs?
Documentation is not clear about this.

The drained event is fired when the wait list is empty regardless if there are active jobs or not.