FIFO
First-In, First-Out
import { Queue } from 'bullmq';
const myQueue = new Queue('Paint');
// Add a job that will be processed after all others
await myQueue.add('wall', { color: 'pink' });await myQueue.add(
'wall',
{ color: 'pink' },
{ removeOnComplete: true, removeOnFail: 1000 },
);Default job options
const queue = new Queue('Paint', { defaultJobOptions: {
removeOnComplete: true, removeOnFail: 1000
});Read more:
Last updated
Was this helpful?