Skip to content
This repository has been archived by the owner on Oct 1, 2022. It is now read-only.

Add zipped callbacks with plan queue #1

Closed
ronpandolfi opened this issue Mar 27, 2019 · 1 comment
Closed

Add zipped callbacks with plan queue #1

ronpandolfi opened this issue Mar 27, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@ronpandolfi
Copy link

When putting a plan on the RunEngine queue, it would be helpful to zip its callbacks along with the plan, rather than depend solely on Teleporter. When the forever_plan gets the next plan off the queue, it could also get the associated callbacks, and transiently add them to the RunEngine.

In this way, an interface could throw many plans at the RunEngine, and dispatch the document stream to the appropriate channels.

@ronpandolfi ronpandolfi added the enhancement New feature or request label Mar 27, 2019
@tacaswell
Copy link
Contributor

You can effectively do this now via https://github.com/NSLS-II/bluesky/blob/1de84d25ed9e5c49660f5292facde48e130b000d/bluesky/preprocessors.py#L330 but the callbacks will be on the wrong thread.

We may want to replace the subscription co-routine on the RunEngine with one that is aware of the other side of the Teletporter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants