Skip to content

Add the new Pipe to frequenz.channels in v2 and deprecate the experimental one #583

Closed

Description

@llucax

What's needed?

Pipe is used by our own projects and is ready to leave experimental. Unlike WithPrevious and NopReceiver (#577), it can't just move with a deprecated alias: #565 changes how it treats its endpoints, so the stable Pipe behaves differently from the experimental one.

What changes, compared to the experimental Pipe:

  • When its receiver stops, the new Pipe closes its sender. The old one stops and leaves the sender open.
  • When a send fails with a SenderError, the new Pipe logs it and closes both its sender and its receiver by default. The old one lets the exception end its task and leaves both open.
  • With close_pipe_on_send_error=False, the new Pipe drops the message that failed and keeps forwarding the next ones. This doesn't bring back the old behavior.
  • stop() leaves both ends open in both.

Proposed solution

In v2.0.0 only, on v2.x.x:

v1 doesn't change: the experimental Pipe stays as it is and isn't deprecated there.

Additional context

This replaces the earlier plan to add the new Pipe in v1.13.0. That can't give users the same behavior on both majors, because a BroadcastChannel without receivers closes itself on a send in v1 and stays open in v2; see #589 (comment). Keeping the old Pipe in v2 lets projects that use it support both v1 and v2, and switch to the new one when they require v2.

Activity

  1. added this to the v1.13.0 milestone on Nov 5, 2026
  2. added
    type:enhancement
    part:experimental
    on Nov 5, 2026
  3. modified the milestones: v1.13.0, v2.0.0 on Nov 5, 2026
  4. changed the title [-]Add the new `Pipe` to `frequenz.channels` and deprecate the experimental one[/-] [+]Add the new `Pipe` to `frequenz.channels` in v2 and deprecate the experimental one[/+] on Nov 5, 2026
  5. added a commit that references this issue on Nov 23, 2026
    e22fdad
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

    part:experimentaltype:enhancement

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions