Retrieve a ScanNumber from numtracker and store it in the RunEngine
persistent state dictionary
#801
Labels
RunEngine
persistent state dictionary
#801
See expected sequence diagram: DiamondLightSource/dodal#991 (comment)
It is possible to pass a callback into the
RunEngine
constructor calledscan_id_source
. For every new run theRunEngine
updates its internal state with a scan number, see docs. The default scan ID source is just an incrementing, in-memory value. TheRunEngine
's current scan ID can be found viaRE.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
RunEngine
asscan_id_source
The text was updated successfully, but these errors were encountered: