Skip to content

Support importing Callback modules that subscribe to the RunEngine #257

Closed as not planned

Description

@DiamondJoseph

Optionally: Make the current worker.events a callback in a default package of callbacks to make it optional

Activity

  1. callumforrester commented on Jun 5, 2023

    @callumforrester
    Contributor

    One way to do this that is already supported

    def my_plan() -> MsgGenerator:
        my_callback = MyCallback()
        my_other_callback = MyOtherCallback()
    
        @subs_decorator([my_callback, my_other_callback])
        def inner_plan() -> MsgGenerator:
            # actual plan logic goes here
    
        yield from inner_plan()

    This could be sufficient...

  2. stan-dot commented on Sep 9, 2024

    @stan-dot
    Contributor

    @DiamondJoseph , what do you think?

  3. added
    c: worker
    on Sep 9, 2024
  4. DiamondJoseph commented on Sep 9, 2024

    @DiamondJoseph
    ContributorAuthor

    @DiamondJoseph , what do you think?

    The linked issue has this left in Artemis/Hyperion/mx-blueksy's remit and was a year ago. I'm happy to close and re-open when we have more concrete requirements.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: worker

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions