Custom job id #669
siavashg87
started this conversation in
General
Replies: 1 comment 2 replies
-
There is no #empty method in BullMQ, maybe you mean #drain? and as the name implies it only removes the jobs that are currently enqueued, but jobs that have completed or failed are not affected. You can remove those by configuring the "onRemoveComplete/Fail" options: https://docs.bullmq.io/guide/jobs/fifo#default-job-options |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a way to clear out all previous custom job ids from the queue?
It does not seem like queue.empty() removes all previous job ids, as my new created jobs with custom ids sometimes gets ignored.
Beta Was this translation helpful? Give feedback.
All reactions