Skip to content

Conversation

@Marenz
Copy link
Contributor

@Marenz Marenz commented May 21, 2025

No description provided.

Signed-off-by: Mathias L. Baumann <[email protected]>
Copilot AI review requested due to automatic review settings May 21, 2025 16:34
@Marenz Marenz requested a review from a team as a code owner May 21, 2025 16:34
@github-actions github-actions bot added part:docs Affects the documentation part:code Affects the code in general labels May 21, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds support for restarting streams by introducing a reconnect mechanism that cancels the current task and starts a new one.

  • Added a reconnect() method in streaming.py to cancel and reinitialize the streaming task.
  • Updated RELEASE_NOTES.md to document the new stream restart functionality.

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/frequenz/client/base/streaming.py Added reconnect() to handle stream restarts
RELEASE_NOTES.md Updated release notes to include restart support note

Copy link
Contributor

@llucax llucax left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This also needs some tests.

limit=maxsize, warn_on_overflow=warn_on_overflow
)

def reconnect(self) -> None:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would call this restart_stream() for extra clarity.

Co-authored-by: Copilot <[email protected]>
Signed-off-by: Mathias L. Baumann <[email protected]>
@Marenz Marenz closed this May 26, 2025
github-merge-queue bot pushed a commit to frequenz-floss/frequenz-dispatch-python that referenced this pull request Jun 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

part:code Affects the code in general part:docs Affects the documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants