You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The RunEngine currently executes a plan through its __call__ dunder which handles user interaction logic (argument wrangling et al.) and task running logic (actually interpreting the plan and talking to hardware).
Possible Solution
Create a promoted, public version of RunEngine._run() which __call__ calls after wrangling the arguments. The public run() (assuming we use that name) kicks off a separate asyncio task and includes some facility for restricting vocabulary (messages the RE can interpret).
Context
Separating these two is useful for #1652 because it paves a path to the RE running two asyncio tasks simultaneously. The more machine-friendly interface will also be useful for headless bluesky applications such as queueserver.
The restricted vocabulary is useful for both of the above cases as it facilities ensuring that some plans are run in a headless mode by disallowing "wait for user input"-style messages.
The text was updated successfully, but these errors were encountered:
The
RunEngine
currently executes a plan through its__call__
dunder which handles user interaction logic (argument wrangling et al.) and task running logic (actually interpreting the plan and talking to hardware).Possible Solution
Create a promoted, public version of
RunEngine._run()
which__call__
calls after wrangling the arguments. The publicrun()
(assuming we use that name) kicks off a separate asyncio task and includes some facility for restricting vocabulary (messages the RE can interpret).Context
Separating these two is useful for #1652 because it paves a path to the RE running two asyncio tasks simultaneously. The more machine-friendly interface will also be useful for headless bluesky applications such as queueserver.
The restricted vocabulary is useful for both of the above cases as it facilities ensuring that some plans are run in a headless mode by disallowing "wait for user input"-style messages.
The text was updated successfully, but these errors were encountered: