-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix reloading the environment if there is an error #514
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have only added the error property to the subprocess handler (and not the ABC). This has required changes to some of the typing in main.py
.
I'm a bit unsure but I thought it might save some work and if the handler is to be removed soon anyway then it could make sense.
What do you think @callumforrester @DiamondJoseph .
Note for me: the schema needs to be regenerated too.
Looking at the test failures now it seems the handler implementation is variable, perhaps I should just add to the ABC. |
aa88466
to
3267dc8
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #514 +/- ##
==========================================
+ Coverage 91.06% 91.10% +0.04%
==========================================
Files 40 40
Lines 1779 1787 +8
==========================================
+ Hits 1620 1628 +8
Misses 159 159 ☔ View full report in Codecov by Sentry. |
It is the worker state rather than the overall state of blueapi. The "state" name may be used to replace the current "initialized" in order to provide more context about the "environment" Prerequisite to #514.
It is the worker state rather than the overall state of blueapi. The "state" name may be used to replace the current "initialized" in order to provide more context about the "environment". Prerequisite to #514.
It is the worker state rather than the overall state of blueapi. The "state" name may be used to replace the current "initialized" in order to provide more context about the "environment". Prerequisite to #514.
It is the worker state rather than the overall state of blueapi. The "state" name may be used to replace the current "initialized" in order to provide more context about the "environment". Prerequisite to #514.
44bbb3f
to
eb3055a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only a small nitpick, looks good, thanks!
This adds a new error_message field to the environment. Its presence is now checked against when attempting to delete the environment as if there is an error the handler is never set to initialized, so previously could not be reloaded. Fixes #512.
eb3055a
to
416ffc5
Compare
This adds a new error field to the environment. This is now checked against when attempting to delete the environment as if there is an error the handler is never set to initialized.
Note that the property has only been added to SubprocessHandler as the BlueskyHandler ABC is likely to be removed.
Fixes #512.