Overview - Job options (delay, attempts, priority)
What is it?
Job options like delay, attempts, and priority are settings you can apply to background tasks in NestJS queues. Delay means waiting some time before starting the job. Attempts let you retry a job if it fails. Priority decides which jobs run first when many are waiting. These options help control how and when jobs run in your app.
Why it matters
Without these options, jobs would run immediately, only once, and in the order they arrive. This can cause problems if a job needs to wait for something else, or if it fails and never tries again. Priority helps important jobs finish faster. These controls make your app more reliable and efficient, especially when handling many tasks.
Where it fits
You should know basic NestJS and how to create queues with Bull or BullMQ. After learning job options, you can explore advanced queue management, event listeners for job status, and scaling workers for performance.