Error2 reports
Fix ConnectionResetError
in Celery
✅ Solution
ConnectionResetError in Celery often arises from network instability or the Redis server closing idle connections. To fix this, configure Celery to use connection pooling with a shorter `broker_pool_limit` and implement retry mechanisms using `autoretry_for` in your Celery tasks, ensuring robust recovery from intermittent connection drops. Also, adjust Redis's `timeout` setting to a higher value.
Related Issues
Real GitHub issues where developers encountered this error:
Celery worker stops consuming Redis tasks after broker connection reset (Connection reset by peer) and does not recover automatically - Reopen #10205May 6, 2026
Celery worker stops consuming Redis tasks after broker connection reset (Connection reset by peer) and does not recover automaticallyMar 16, 2026
Timeline
First reported:May 13, 2025
Last reported:May 6, 2026