Commit
Enhance worker and queue functionality with Redis health checks and error handling
Commit details
Commit notes
This commit introduces several improvements to the worker and queue modules, including:
- **Eager Redis Connection:** The worker now connects to Redis eagerly at startup, ensuring that it can detect connection issues early. - **Worker Health Updates:** Added a periodic health update mechanism for workers in Redis, allowing for better monitoring of active jobs. - **Error Handling Enhancements:** Implemented backoff strategies for job processing in the queue, reducing pressure on Redis during errors and improving resilience. - **Polling Adjustments:** Adjusted polling intervals and concurrency settings for various queues to optimize performance and resource usage.
These changes aim to improve the reliability and efficiency of the worker and queue systems.
- Files changed
- 3
- Lines added
- +133
- Lines removed
- −32