Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,16 @@

<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->

* `ActorDispatcher.ActorAndChannel` is no longer frozen and has a new required `current_dispatch` field. Code that builds it directly will break; use `ActorDispatcher` itself instead.

## New Features

<!-- Here goes the main new features and examples or instructions on how to use them -->

* Added opt-in support for reusing a continuation-capable actor across exactly adjacent, compatible dispatches, enabled only through `Dispatcher.start_managing(continuation_predicate=...)`. New public names: `ContinuationCapable`, `is_exact_continuation()`, `DispatchInfo.continuation_of` and `DispatchInfo.dispatch`. Ambiguous or unsupported handovers keep the normal stop/start behavior.

## Bug Fixes

* Docstrings now use absolute cross-references to public paths instead of relative ones. Relative cross-references are expanded from the module where an object is defined since mkdocstrings-python 2.0.9, which broke some links, and projects rendering docstrings inherited from this library needed `relative_crossrefs: true` for them to work at all. See [frequenz-repo-config-python#655](https://github.com/frequenz-floss/frequenz-repo-config-python/issues/655) for details.
* Fixed actors being left running when an update changes a dispatch's merge identity.
* Fixed the scheduler's timer crashing when two scheduled events landed at the same instant, and stopped it from spinning at a microsecond interval once its event queue emptied afterward.
5 changes: 4 additions & 1 deletion src/frequenz/dispatch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@

"""

from ._actor_dispatcher import ActorDispatcher, DispatchInfo
from ._actor_dispatcher import ActorDispatcher, ContinuationCapable, DispatchInfo
from ._bg_service import MergeStrategy
from ._continuation import is_exact_continuation
from ._dispatch import Dispatch
from ._dispatcher import Dispatcher
from ._event import Created, Deleted, DispatchEvent, Updated
Expand All @@ -31,8 +32,10 @@
"Updated",
"Dispatch",
"ActorDispatcher",
"ContinuationCapable",
"DispatchInfo",
"MergeStrategy",
"MergeByType",
"MergeByTypeTarget",
"is_exact_continuation",
]
Loading