Skip to content

feat: improve Redis pub/sub listener resilience with reconnect logic … - #132

Merged
khashashin merged 2 commits into
mainfrom
fix/ws-pubsub-listener-resilience
Jun 4, 2026
Merged

feat: improve Redis pub/sub listener resilience with reconnect logic …#132
khashashin merged 2 commits into
mainfrom
fix/ws-pubsub-listener-resilience

Conversation

@khashashin

Copy link
Copy Markdown
Owner

…and graceful teardown

khashashin and others added 2 commits June 4, 2026 13:28
The listener now runs an unbounded reconnect loop and drains messages via `get_message` instead of `listen()`. The existing test awaited the listener to completion and only stubbed `listen()`, so against the new code `get_message` raised AttributeError, the reconnect loop caught it and looped forever — hanging CI on this test.

Drive the listener as a cancellable task (as the lifespan does), stub `get_message` to deliver one message then report idle, and cancel once the message is bridged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
@khashashin
khashashin merged commit 35215a0 into main Jun 4, 2026
3 checks passed
@khashashin
khashashin deleted the fix/ws-pubsub-listener-resilience branch June 4, 2026 12:07
khashashin added a commit that referenced this pull request Jun 14, 2026
#132)

* feat: improve Redis pub/sub listener resilience with reconnect logic and graceful teardown

* test: fix redis pub/sub listener test hanging on reconnect loop

The listener now runs an unbounded reconnect loop and drains messages via `get_message` instead of `listen()`. The existing test awaited the listener to completion and only stubbed `listen()`, so against the new code `get_message` raised AttributeError, the reconnect loop caught it and looped forever — hanging CI on this test.

Drive the listener as a cancellable task (as the lifespan does), stub `get_message` to deliver one message then report idle, and cancel once the message is bridged.

Co-Authored-By: Claude Opus 4.8 <[email protected]>

---------

Co-authored-by: Claude Opus 4.8 <[email protected]>
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