-
I'm following the below example to manually proceed my job list: https://docs.bullmq.io/patterns/manually-fetching-jobs I can add many job to the queue and all the job are waiting in the waiting queue, until I proceed one job with:
So my job is well proceed, and when it is completed I used:
Until here, this is working as expected. But once the job is move to the completed queue, the next job (from the waiting queue) is automatically put in the active queue. This is not what i want, i'd like to continue the process of manually go fetching the next job and proceed it (when i want), and keep my active queue clear between 2 jobs process. Is this by design? Or is my code messed up at some point? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Found it, I needed to add a false to fetchNext param in moveToCompleted method. |
Beta Was this translation helpful? Give feedback.
Found it, I needed to add a false to fetchNext param in moveToCompleted method.