codalab / codalab/codabench

Redis timeout with Django and redis-py 8

Open
#2,539 0 comments 0 reactions 3 assignees View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.