Skip to content

Hardcode decode_responses=True on Redis clients - #88

Merged
codingjoe merged 1 commit into
mainfrom
codingjoe-redis-decode-responses
Oct 7, 2026
Merged

codingjoe merged 1 commit into
mainfrom
codingjoe-redis-decode-responses

Conversation

@codingjoe

Copy link
Copy Markdown
Owner

The backend previously assumed redis-py's default decode_responses=False and decoded every value at the call site. This inverts that decision: both the sync and async Redis clients now load with decode_responses=True, so task IDs, lease fields, and pub/sub payloads are strings straight from the client.

  • Load the sync and async clients with decode_responses=True
  • Drop the per-call .decode() handling in the broker, peek, result, and telemetry paths
  • Update the tests to compare string payloads and channels
  • Document the inverted decision in CONTRIBUTING.md

The backend now loads both the sync and async Redis clients with
decode_responses=True, so task IDs, lease fields, and pub/sub payloads
arrive as strings. Drop the bytes decoding at every call site and the
bytes handling in the tests. Document the inverted decision in
CONTRIBUTING.md.
@codingjoe
codingjoe merged commit 9f1a002 into main Oct 7, 2026
4 checks passed
@codingjoe
codingjoe deleted the codingjoe-redis-decode-responses branch October 7, 2026 13:02
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.

1 participant