I'm using bull with node.js. I was thinking of using a master-slave model, where one thread puts stuff in the queue, and another just pulls it from the queue.
However, when my worker threads try to pull from the queue, they get this error:
Error: Cannot define a handler more than once per Queue instance
when I call this function
var doJobs = function() {
return Queue.process(job, jobDone) {
console.log("job done");
jobDone();
});
}
Can anyone tell me what this error means?