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
Unforntaly, for my life, I can't find either a good example or good docs to explain how we should be instantiating a QueueScheduler.
All I can tell is I must make one for any queue where I'd like failure/retry/backOff/etc to work. So often, I have code like this that looks odd:
exportconstSomeQueue=newQueue<JobData,JobResult>(SOME_QUEUE_NAME,{
connection,
defaultJobOptions,});// This is needed for retry and failure capture to work! Do no remove! 🚨 >>>newQueueScheduler(SOME_QUEUE_NAME);<<<
I simply create an instance of QueueScheduler. That's it. It just feels like magic to me 😨
Is this normal?? Any feedback here would be helpful! ty!
The text was updated successfully, but these errors were encountered:
I heavily recommend that you use typescript+vscode so you will get intellisense, with contextual documentation, etc. All objects in BullMQ follow the same pattern, first parameter is the queue name, second the options object. If no connection option is passed, then the default is connect to local redis, for example:
First off, I love the tool ❤️
Unforntaly, for my life, I can't find either a good example or good docs to explain how we should be instantiating a QueueScheduler.
All I can tell is I must make one for any queue where I'd like failure/retry/backOff/etc to work. So often, I have code like this that looks odd:
I simply create an instance of QueueScheduler. That's it. It just feels like magic to me 😨
Is this normal?? Any feedback here would be helpful! ty!
The text was updated successfully, but these errors were encountered: