Skip to content

Redis timeout with Django and redis-py 8 #2539

Description

@IdirLISN

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:
django/channels_redis#422

PR:
django/channels_redis#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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions