Skip to content

Conversation

mackenzie-grimes-noaa
Copy link
Contributor

@mackenzie-grimes-noaa mackenzie-grimes-noaa commented Jul 30, 2025

Linear Issue

IDSSE-1301

Changes

  • Catch ChannelWrongStateError which pika throws if we attempt to publish messages to a closed channel/connection

Explanation

Uncaught exception was causing callers of Publisher.blocking_publish() to still fail un-gracefully, because the services' code looks to the return value (True/False) to decide if it should restart its Publisher thread.

This catches yet another possible exception from pika and returns False to the caller, so the service can restart its Publisher.

@mackenzie-grimes-noaa mackenzie-grimes-noaa marked this pull request as ready for review July 30, 2025 16:32
@mackenzie-grimes-noaa mackenzie-grimes-noaa merged commit 6434686 into main Aug 12, 2025
2 checks passed
@mackenzie-grimes-noaa mackenzie-grimes-noaa deleted the bug/catch-closed-channel branch August 12, 2025 18:32
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