You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
according to docs we need a queue scheduler in order to have delayed jobs and from docs example one has to declare it like:
import { Queue, QueueScheduler } from 'bullmq'
const myQueueScheduler = new QueueScheduler('Paint');
const myQueue = new Queue('Paint');
// Add a job that will be delayed at least 5 seconds.
await myQueue.add('house', { color: 'white' }, { delay: 5000 });
My question is that isn't there any functionality we want from a queue scheduler? as we are working with the basic Queue to add jobs.
so The above example and this one is equivalent:
import { Queue, QueueScheduler } from 'bullmq'
new QueueScheduler('Paint');
const myQueue = new Queue('Paint');
// Add a job that will be delayed at least 5 seconds.
await myQueue.add('house', { color: 'white' }, { delay: 5000 });
The text was updated successfully, but these errors were encountered:
according to docs we need a queue scheduler in order to have delayed jobs and from docs example one has to declare it like:
My question is that isn't there any functionality we want from a queue scheduler? as we are working with the basic Queue to add jobs.
so The above example and this one is equivalent:
The text was updated successfully, but these errors were encountered: