Bullmq get a job with a specific ID from a queue
I am trying to create a results queue on BullMQ where all workers can send results adding jobs with special crafted jobIDs. The idea is that all results arrive with a specific jobID generated so that I known exactly which process the result is for. I've tried with getNextJob as described in the documentation, with no luck. The solution I found is using the queuEvents: each process registers a listener on the waiting state of the results queue and, when the job with the id It needs arrives, the process gets the job with a getJob, reads the result data and tries to move the job to completed. It
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.