Replies: 1 comment 1 reply
|
Not sure I understand this question. Basically if you do not want to add more jobs to the queue just don't do it :) Probably I am missing something here... |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello,
I've been looking for queue messaging systems for NodeJS and came across BullMQ for interprocess communication.
Currently in BullMQ, I've only found ways to add into the queue and consume it.
There are moments when I would like for the Queue to be frozen and not receive jobs. In the documentation I'm allowed to
pause()the queue, but this reads that it merely pauses the jobs from being processed and they will still queue up indefinitely.Are there no mechanisms that allow for limiting queue size, and by extension preventing a queue from receiving new jobs? Otherwise, I (and others) would need to work my code around BullMQ (were jobs added with a "not running" signal? discard the job data).
Thanks.
All reactions