Auto-removal of jobs
Remove all finalized jobs
await myQueue.add(
'test',
{ foo: 'bar' },
{ removeOnComplete: true, removeOnFail: true },
);Keep a certain number of jobs
await myQueue.add(
'test',
{ foo: 'bar' },
{ removeOnComplete: 1000, removeOnFail: 5000 },
);Keep jobs based on their age
What about idempotence?
Read more:
Last updated
Was this helpful?