-
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
Add CLI commands to inspect/restart the environment #366
Comments
what are the features of environment we want to inspect here? is it about pip environment? or beamline-specific config? |
This to add cli support for the environment end points. This allows the bluesky context to be reloaded without restarting the whole service which is useful if blueapi is loading plans from a "scratch" area to allow rapid development/testing. |
connected to #363 (?) looking into the environment now |
` @app.delete("/environment")
` I see only two endpoints right now - get and delete, no 'reload'. Reading into the calls from would the minimal implementation user experience be of this kind: |
You're correct, "reload" is a verb, so shouldn't be in the rest api. But the CLI can combine nouns into a verb. So your suggested UX looks good. |
ok will implement that, it should be a pretty minimal addition |
not sure if 'environment' is the best name here one confusing thing is the similarity between 'infrastructure environment', 'environment variables' and what we have here is 'devices ensemble' or 'devices config'. [just brainstorming] |
currently
|
using |
|
thinking how to fix the test which fails now that there's the 'sleep(5) line there |
testing sleep does not seem to be well-supported most use cases are to use 'sleep' in the test body itself |
No description provided.
The text was updated successfully, but these errors were encountered: