What problem does it solve?
This Skill addresses the need for reliable background job processing, task queuing, and worker management in Node.js applications, especially when dealing with asynchronous operations and potential failures.
Core Features & Use Cases
- Task Queuing: Implement robust task queues for background jobs using Redis.
- Worker Management: Set up and manage workers to process jobs efficiently with configurable concurrency.
- Delayed Jobs & Retries: Schedule jobs for future execution and configure automatic retries with exponential backoff for resilience.
- Graceful Shutdown: Ensure all in-flight jobs are completed before shutting down workers and queues.
- Use Case: A common scenario is sending out thousands of personalized emails. Instead of blocking the main application thread, each email can be added as a job to a BullMQ queue, processed by multiple workers, with automatic retries for any failures.
Quick Start
Use the bullmq skill to set up a queue named 'email' with default job options for retries and completion removal.