Queue job structure and timeouts
masterA job is a function that follows the signature (next) => { ... }.
Individual Job Timeouts:
While the Queue has a default timeout, you can specify a unique timeout for an individual job by attaching a timeout property to the function object itself. The queue will prioritize the job's own timeout over the global queue setting.
const fastJob = (next) => next(null, 'fast');
fastJob.timeout = 100; // This job times out in 100ms
const slowJob = (next) => setTimeout(() => next(null, 'slow'), 5000);
// slowJob will use the Queue's default timeout
q.push(fastJob, slowJob);