Skip to content

Fix fakeredis 2.35 memory backend startup#382

Merged
chrisguidry merged 2 commits intomainfrom
fix/fakeredis-235-memory-backend-pr
Apr 10, 2026
Merged

Fix fakeredis 2.35 memory backend startup#382
chrisguidry merged 2 commits intomainfrom
fix/fakeredis-235-memory-backend-pr

Conversation

@jakekaplan
Copy link
Copy Markdown
Collaborator

@jakekaplan jakekaplan commented Apr 9, 2026

fakeredis 2.35 renamed its async connection class from FakeConnection to FakeAsyncRedisConnection, which breaks Docket's memory:// backend during startup. That shows up downstream as an import error before any task worker can start.

This bumps the fakeredis floor to >=2.35.0, switches the memory connection pool to the new async connection class, and updates the lockfile so fresh installs resolve to a compatible version.

Validated with REDIS_VERSION=memory uv run pytest tests/test_memory_backend.py -q --no-cov -n 0 and uv run prek run --all-files.

CLOSES #380

@jakekaplan jakekaplan marked this pull request as ready for review April 9, 2026 19:44
@chrisguidry
Copy link
Copy Markdown
Owner

Oops I think GH misunderstood Alex's "fixes..." comment :D

@chrisguidry chrisguidry merged commit 35dd2cd into main Apr 10, 2026
96 checks passed
@chrisguidry chrisguidry deleted the fix/fakeredis-235-memory-backend-pr branch April 10, 2026 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fakeredis 2.35.0 breaks pydocket's in-memory backend

4 participants