Conversation
A linked channel names its owner as an execution, a workflow or a standalone activity, so the client needs a typed value for it.
The five calls reach an independent channel or one linked to an execution. Polls return workflow.Notification, so the workflow side shares the type later.
The unit case fakes the service. The live cases skip unless -E names a server that serves channels.
This was referenced Oct 3, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the notification channel calls to the Python client.
What changed?
Client.notify_channel,poll_channel,describe_channel,register_channel_listenerandunregister_channel_listener. Each one reaches an independent channel, or a channel linked to an owner given asexecution=or with theworkflow_id=shorthand.temporalio.common.ExecutionandExecutionType, so a linked channel's owner is a typed value. It can be a workflow or a standalone activity.ChannelKind,ChannelListener,ChannelDescriptionandChannelAddress, plus the interceptor inputs andOutboundInterceptormethods for the five calls.workflow.Notificationcomes in here on its own, because polls return it. Itslinked_todocstring points atworkflow.subscribe_channelandworkflow.linked_channel, which the next PR adds.Part of AI-198 (epic AI-37).
Why?
A channel tells listeners that something they read has moved, and the client is the first place an app touches one. Any process with a client can notify, poll, describe and register a callback without a workflow involved. So this lands before the workflow side, and reviewers see the calls on their own.
How did you test it?
Link to a test plan if any -
poe lintis clean. The unit case fakes the service and checks that every call carries the owner it was given, and only then. The callback-listener and retained-poll cases ran against a PoC server that serves channels. On the dev server the fixtures start, they skip.