Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
redis-version: ["6.2", "7.4"]
redis-version: ["6.2", "7.4", "valkey-8.0"]
redis-py-version: [">=4.6,<5", ">=5"]

steps:
Expand Down
2 changes: 1 addition & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co

**Docket** (`pydocket` on PyPI) is a distributed background task system for Python functions with Redis-backed persistence. It enables scheduling both immediate and future work with comprehensive dependency injection, retry mechanisms, and fault tolerance.

**Key Requirements**: Python 3.12+, Redis 6.2+
**Key Requirements**: Python 3.12+, Redis 6.2+ or Valkey 8.0+

## Development Commands

Expand Down
9 changes: 8 additions & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,15 @@ def redis_server(testrun_uid: str, worker_id: str) -> Generator[Container, None,
s.bind(("", 0))
redis_port = s.getsockname()[1]

# Determine Docker image based on version
if REDIS_VERSION.startswith("valkey-"):
version = REDIS_VERSION.replace("valkey-", "")
image = f"valkey/valkey:{version}"
else:
image = f"redis:{REDIS_VERSION}"

container = client.containers.run(
f"redis:{REDIS_VERSION}",
image,
detach=True,
ports={"6379/tcp": redis_port},
labels={
Expand Down