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

Update meta adapter to only send config with acquisition ID #350

Merged
merged 1 commit into from
Aug 8, 2024

Conversation

GDYendell
Copy link
Collaborator

@GDYendell GDYendell commented Jul 17, 2024

Currently there is an issue where the meta adapter status transitions in and out of the writing state on start, which can cause clients to trigger the detector too soon.

This changes the logic so that configuration changes are only sent down immediately if there is already a valid acquisition ID (rather than using None and then setting the acquisition ID afterward) or otherwise to just update the config cache and send that down when the new acquisition ID is set. This makes things more robust and removes the need for clients to do things in a particular order.

This is a workaround for allowing multiple acquisitions to be active at one time, so this is a problem that will go away in the future and then we won't have to do any config caching.

Related to DiamondLightSource/dodal#488.

@GDYendell GDYendell requested a review from ajgdls July 17, 2024 12:49
@GDYendell GDYendell merged commit d30ca44 into master Aug 8, 2024
15 checks passed
@GDYendell GDYendell deleted the meta-adapter-config branch August 8, 2024 15:42
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.

2 participants