Deduplication
Until job is active
import { Job, Queue, Worker } from 'bullmq';
const myQueue = new Queue('Paint');
const worker = new Worker('Paint', async (job: Job) => {
await job.removeDeduplicationKey();
console.log('Do something with job');
return 'some value';
});
myQueue.add('house', { color: 'white' }, { deduplication: { id: 'house' } });Using job schedulers
Read more:
Last updated
Was this helpful?