We are getting a 'failed' and 'error' event with the following message: Missing process handler for job type __default__
We do not know where it is coming among all the jobs running in our system
3.10.0
Hi! Looks like you use named processors, i.e. when you define processing callback with name like
queue.process('some-name', async (job) => { })
and then add jobs as usual without setting that some-name, so bull uses __default__ as default:
queue.add({ "input": "data" }, ... opts);
So either define process callback without setting name (1st arg) or only add jobs to queue to match one of names you use. Finally you can always add named processor for __default__ as well —
queue.process('__default__', async (job) => { })
Thanks for this @stansv
Trying to find if we ever define this un-named job. As of now, cannot find any. Still looking...
We cannot find any job with an "un-named" parameters.
But we tried creating a processor for __default__ but we are still getting the errors
Related issues:
I also see this issue in production from time to time. We also give all jobs names.
The named processors feature has been just a root of confusion, thats why this has been removed from BullMQ (aka bull 4).
Most helpful comment
Hi! Looks like you use named processors, i.e. when you define processing callback with name like
and then add jobs as usual without setting that
some-name, so bull uses__default__as default:So either define process callback without setting name (1st arg) or only add jobs to queue to match one of names you use. Finally you can always add named processor for
__default__as well —