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... |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.
Beta Was this translation helpful? Give feedback.
All reactions