Redis timeout with Django and redis-py 8
@wlln is already working on this.
Since Sep 15, 2026.
- Dominant language
- Python
- Stars
- 176
- Forks
- 74
- Avg merge
- 5d 3h
- Merged PRs (30d)
- 21
Description
Description
Codabench started experiencing recurring Redis timeout errors in all environments (local, dev and production):
redis.exceptions.TimeoutError: Timeout reading from redis:6379
The error occurs in the SubmissionOutputConsumer through Django Channels.
[!IMPORTANT]
The problem does not trigger a service interruption
The Redis server itself remains healthy and available. For example, Redis reports no rejected connections and a normal number of connected clients.
The issue was observed with:
Python 3.13
Django 5.2.16 and Django 6.1.1
channels 4.3.2
channels-redis 4.0.0
Root cause
DJango redis github issue:
https://github.com/django/channels_redis/issues/422
PR:
https://github.com/django/channels_redis/pull/423
Proposed fix
Pin redis to 7.4.0 in Codabench's dependencies inside of pyproject.toml until a version of channels-redis containing the fix is released.
branch for fix:
fix/downgrade_redis
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.