Stop retrying jobs
import { Worker, UnrecoverableError } from 'bullmq';
const worker = new Worker(
'foo',
async job => {
doSomeProcessing();
throw new UnrecoverableError('Unrecoverable');
},
{ connection },
);
await queue.add(
'test-retry',
{ foo: 'bar' },
{
attempts: 3,
backoff: 1000,
},
);Fail job when manual rate-limit
Read more:
Last updated
Was this helpful?