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

Dispatch Managing Actor #54

Merged
merged 11 commits into from
Sep 30, 2024
Merged

Dispatch Managing Actor #54

merged 11 commits into from
Sep 30, 2024

Commits on Sep 30, 2024

  1. Send STOPPED message when duration is reached

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    cd5bf23 View commit details
    Browse the repository at this point in the history
  2. Fix wrong running behaviors with duration=None

    * Dispatch.running() was always returning RUNNING for duration None
    * Dispatch.next_run_after() was made aware that there is no next run for
      inf. Duration
    * Dispatch._until() now raises when used with Dispatch.None
    * Actor: delay marking a Dispatch as deleted, otherwise checks wrongly
      detect it as no longer running.
    
    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    134ddab View commit details
    Browse the repository at this point in the history
  3. Rewrite internal architecture to be more flexible

    The internal scheduling architecture was rewritten:
    
    Instead of using one task per dispatch that will start/stop them,
    we now have a queue of events and a timer that is rescheduled
    to the earliest next event each time it triggers.
    
    Previously we had to do complicated re-scheduling and cancelling of
    tasks, now we always just update the event in the queue.
    
    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    4dd7b2b View commit details
    Browse the repository at this point in the history
  4. Add dispatch mananging actor

    A useful actor to help control and manange another actor using
    dispatches.
    
    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    0b671ed View commit details
    Browse the repository at this point in the history
  5. DispatchManagingActor: Support starting/stopping of multiple actors

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    432b3cb View commit details
    Browse the repository at this point in the history
  6. Fix wrong Dispatch.running() behavior with duration=None

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    bcd5c0f View commit details
    Browse the repository at this point in the history
  7. DispatchActor: Update timer correctly after schedule modifications

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    611a4eb View commit details
    Browse the repository at this point in the history
  8. Set dependency to latest dispatch-client

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    14d4510 View commit details
    Browse the repository at this point in the history
  9. Update event_loop to explicitly set scope session

    As recommended by the deprecation warning
    
    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    0287a09 View commit details
    Browse the repository at this point in the history
  10. Wrap scheduler to tolerate somehow invalid dispatches

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    820dcc3 View commit details
    Browse the repository at this point in the history
  11. Add test that notifications are sent at startup

    Signed-off-by: Mathias L. Baumann <[email protected]>
    Marenz committed Sep 30, 2024
    Configuration menu
    Copy the full SHA
    039d22e View commit details
    Browse the repository at this point in the history