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

Add support for bluesky Suspenders #619

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

Add support for bluesky Suspenders #619

wants to merge 2 commits into from

Conversation

jsouter
Copy link
Contributor

@jsouter jsouter commented Oct 23, 2024

Addresses #508

In a draft form, uploading for demonstration.
I've tried to copy the test https://github.com/bluesky/bluesky/blob/3bce96b85558993499174be7eebcd09f270a9271/src/bluesky/tests/test_suspenders.py#L25 here for ophyd-async, I'm not sure the best way to approach it. The test I've added is currently broken.

Some work needs to be done to figure out how to provoke the suspension while running the plan, as call_in_bluesky_event_loop will finish the task synchronously before running the plan, but I have observed that when the Suspender is called inside the bluesky event loop that the suspend event never gets made, as this call_soon_threadsafe call times out https://github.com/bluesky/bluesky/blob/39da716adfc4028baa4575b3922e7194ca734544/src/bluesky/suspenders.py#L169

Relies on bluesky/bluesky#1806

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.

1 participant