Skip to content

Commit

Permalink
Rewrite internal architecture to be more flexible
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Marenz committed Sep 24, 2024
1 parent 8d25f60 commit f316833
Show file tree
Hide file tree
Showing 3 changed files with 385 additions and 152 deletions.
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ dependencies = [
# mkdocs.yml file when changing the version here (look for the config key
# plugins.mkdocstrings.handlers.python.import)
"frequenz-sdk == 1.0.0-rc900",
"frequenz-channels >= 1.1.0, < 2.0.0",
# "frequenz-channels >= 1.1.0, < 2.0.0",
"frequenz-channels @ git+https://github.com/frequenz-floss/frequenz-channels-python.git@refs/pull/323/head",
# "frequenz-client-dispatch >= 0.6.0, < 0.7.0",
"frequenz-client-dispatch @ git+https://github.com/frequenz-floss/frequenz-client-dispatch-python.git@v0.x.x",
"frequenz-client-dispatch @ git+https://github.com/frequenz-floss/frequenz-client-dispatch-python.git@refs/pull/87/head",
]
dynamic = ["version"]

Expand Down
Loading

0 comments on commit f316833

Please sign in to comment.