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

Retrieve a ScanNumber from numtracker and store it in the RunEngine persistent state dictionary #801

Open
callumforrester opened this issue Jan 24, 2025 · 0 comments
Labels
enhancement New feature or request worker Relates to worker code

Comments

@callumforrester
Copy link
Contributor

See expected sequence diagram: DiamondLightSource/dodal#991 (comment)

It is possible to pass a callback into the RunEngine constructor called scan_id_source. For every new run the RunEngine updates its internal state with a scan number, see docs. The default scan ID source is just an incrementing, in-memory value. The RunEngine's current scan ID can be found via RE.md["scan_id"].

For the above issue we need start sourcing IDs from numtracker. So this issue consists of writing a scan ID source function that retrieves a new ID and hooks it into the RunEngine.

Still TBD is the fallback behaviour if blueapi can't connect to numtracker and the default behavoir in a dev environment.

Acceptance Criteria

  • There is a function that can retrieve a new scan number from numtracker
  • It is passed to the RunEngine as scan_id_source
  • ...
@callumforrester callumforrester added enhancement New feature or request worker Relates to worker code labels Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request worker Relates to worker code
Projects
None yet
Development

No branches or pull requests

1 participant