DiamondLightSource / DiamondLightSource/mx-bluesky
Hyperion supervisor does not hand baton back on an error
Open
- Dominant language
- Python
- Stars
- 4
- Forks
- 5
- Avg merge
- 1d 30m
- Merged PRs (30d)
- 2
Description
Found when testing multipin collections - seems like `clean_up_and_release_baton()` is not called when `hyperion-blueapi` raises an exception. Possibly `contingency_wrapper` receives a `GeneratorExit` somehow?
e.g. stream of restart loop starting at
https://graylog.diamond.ac.uk/search?streams=66264f5519ccca6d1c9e4e03&rangetype=absolute&q=&from=2026-05-07T09%3A36%3A04.435184%2B00%3A00&to=2026-05-07T09%3A41%3A05.435184%2B00%3A00
## Acceptance Criteria
- Specific criteria that will be used to judge if the issue is fixed
Contributor guide
Assessment
This issue has not been assessed yet.