You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm in the process of migrating from Kue to Bull and ran into the following problem: I have a single queue with multiple named jobs which are to be processed by different processors (running as different processes). Some process functions need to create further jobs which are supposed to be handled by other processors (running in different processes). Unfortunately, this doesn't work, because I'm getting a Missing process handler for job type $jobName error.
I suppose that's why the documentation explicitly states:
Just keep in mind that every queue instance require to provide a processor for every named job or you will get an exception
I don't quite understand why a processor needs to have knowledge about other processor's capabilities to handle certain jobs? And, more importantly, is there a way around this? Would creating dedicated queues for all the jobs a single processor handles solve the problem?
Thanks for any hints!
The text was updated successfully, but these errors were encountered:
Ok, here's what I got wrong: Processor2 was picking up jobs which were meant for Processor1 and of course it complained about being unable to handle these named jobs. ;-) So having a dedicated queue for each processor (processing specific job types only) would indeed solve my problem.
I'm in the process of migrating from Kue to Bull and ran into the following problem: I have a single queue with multiple named jobs which are to be processed by different processors (running as different processes). Some process functions need to create further jobs which are supposed to be handled by other processors (running in different processes). Unfortunately, this doesn't work, because I'm getting a
Missing process handler for job type $jobName
error.I suppose that's why the documentation explicitly states:
I don't quite understand why a processor needs to have knowledge about other processor's capabilities to handle certain jobs? And, more importantly, is there a way around this? Would creating dedicated queues for all the jobs a single processor handles solve the problem?
Thanks for any hints!
The text was updated successfully, but these errors were encountered: