Skip to content

fix: Unsubscribe from STOMP in client after use - #1232

Merged
callumforrester merged 2 commits into
mainfrom
fix-subscriber-pileup
Oct 15, 2025
Merged

callumforrester merged 2 commits into
mainfrom
fix-subscriber-pileup

Conversation

@callumforrester

Copy link
Copy Markdown
Contributor

Pending DiamondLightSource/bluesky-stomp#44

Unsubsribe from STOMP messages after use to prevent a race condition. The client already disconnects from the stomp broker after its context exits, but any subscriptions are resubscribed when the client reconnects, they need to be explicitly unsubscribed.

@callumforrester
callumforrester requested a review from a team as a code owner October 13, 2025 15:16
@callumforrester callumforrester changed the title Unsubsribe from STOMP in client after use fix: Unsubsribe from STOMP in client after use Oct 13, 2025
Pending DiamondLightSource/bluesky-stomp#44

Unsubsribe from STOMP messages after use to prevent a race condition. The client already disconnects from the stomp broker after its context exits, but any subscriptions are resubscribed when the client reconnects, they need to be explicitly unsubscribed.
@codecov

codecov Bot commented Oct 14, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.65%. Comparing base (1021110) to head (f2f84a2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1232   +/-   ##
=======================================
  Coverage   94.64%   94.65%           
=======================================
  Files          41       41           
  Lines        2595     2599    +4     
=======================================
+ Hits         2456     2460    +4     
  Misses        139      139           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@DiamondJoseph DiamondJoseph changed the title fix: Unsubsribe from STOMP in client after use fix: Unsubscribe from STOMP in client after use Oct 15, 2025
@callumforrester
callumforrester merged commit c75bd73 into main Oct 15, 2025
@callumforrester
callumforrester deleted the fix-subscriber-pileup branch October 15, 2025 08:31
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