Skip to content
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

Baton management #13

Open
DominicOram opened this issue Nov 3, 2022 · 3 comments
Open

Baton management #13

DominicOram opened this issue Nov 3, 2022 · 3 comments
Labels
enhancement New feature or request python Pull requests that update Python code question Further information is requested

Comments

@DominicOram
Copy link
Contributor

To avoid multiple people trying to write to the beamline at the same time we should have a baton. It probably makes sense for this baton to be in dodal so that anyone using it obeys the baton

Acceptance Criteria

  • There is a discussion about how to handle this in dodal
  • There is some documentation on what the solution looks like
@stan-dot stan-dot added enhancement New feature or request question Further information is requested python Pull requests that update Python code labels Sep 25, 2024
@stan-dot
Copy link
Contributor

this is not a problem in blueapi as far as I am aware.

can we define the scenario in more concrete terms? Is it about different RE instances?

@DominicOram
Copy link
Contributor Author

The main thing we're trying to avoid is GDA and Hyperion trying to use the beamline at the same time. Therefore there needs to be an external baton that each application looks at to tell them if they're in charge or not.

@stan-dot
Copy link
Contributor

we could build a low level lock-and-baton system with redis, or in an etc-d key.

third party solutions include:

@tpoliaw I searched on slack for messages with the baton keyword and thought you may have suggestions - also amygdala might need to coordinate to make this work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants