Implement a processOnce method
Created by: doprdele
I am wondering if there is a way to do the following in Bull. I have two queues, of which I need information from both queues.
I want to pop a job from Queue A, and then somewhere in processing, pop a job from Queue B, but, only once. I only want a job dequeued from Queue B inside the logic of Queue A's processing, kind of like this in a perfect world.
qA.process(function(item) { qB.processOne(function(item) { } }