This stops corrupted/invalid jobs from clogging up the queue. Ref: https://github.com/OptimalBits/bull/issues/2461
5 lines
260 B
TypeScript
5 lines
260 B
TypeScript
import Bull from "bull";
|
|
|
|
// Processor to be registered for jobs with __default__ (unnamed) handlers in queues that only have named handlers
|
|
// Prevents sporadic bogus jobs from clogging up the queues
|
|
export async function noop(_: Bull.Job): Promise<void> { }
|