LIFO
Last-in, First Out
import { Queue } from 'bullmq';
const myQueue = new Queue('Paint');
// Add a job that will be processed before all others
await myQueue.add('wall', { color: 'pink' }, { lifo: true });Last updated
Was this helpful?
Last-in, First Out
import { Queue } from 'bullmq';
const myQueue = new Queue('Paint');
// Add a job that will be processed before all others
await myQueue.add('wall', { color: 'pink' }, { lifo: true });Last updated
Was this helpful?
Was this helpful?