Skip to content

fix(rabbit): rebind subscriptions after reconnect#11

Open
sergiopalacio wants to merge 1 commit into
masterfrom
fix/rabbit-rebind-on-reconnect
Open

fix(rabbit): rebind subscriptions after reconnect#11
sergiopalacio wants to merge 1 commit into
masterfrom
fix/rabbit-rebind-on-reconnect

Conversation

@sergiopalacio

Copy link
Copy Markdown

Track subscribed channels in RMQBackend and re-apply queue_bind on every fresh consumer channel so messages keep flowing after a disconnect.

A new _sub_lock serializes subscribe/unsubscribe with the rebind loop to prevent concurrent set mutation and duplicate binds on a mid-setup channel.

This change is needed because when Rabbit services restart the reconnect does not re-bind since the subscription groups are still there, it silently passes.

Track subscribed channels in RMQBackend and re-apply queue_bind on every
fresh consumer channel so messages keep flowing after a disconnect. A
new _sub_lock serializes subscribe/unsubscribe with the rebind loop to
prevent concurrent set mutation and duplicate binds on a mid-setup
channel.
@CLAassistant

CLAassistant commented Apr 20, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@jonatrios
jonatrios self-requested a review April 22, 2026 08:59
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.

2 participants