Skip to content

Commit 4e0334b

Browse files
committed
Moved Core to the API's WorkflowProducer comment.
The stub of the Stream messages has the new comment, which says who sets the epoch.
1 parent fc1fcce commit 4e0334b

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎temporalio/api/stream/v1/message_pb2.pyi‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -167,8 +167,8 @@ global___ActivityEpoch = ActivityEpoch
167167
@typing.final
168168
class WorkflowProducer(google.protobuf.message.Message):
169169
"""Experimental. Might change in the future.
170-
A Workflow run Producer. On the server's Streams, a Workflow writes as this Producer in its
171-
Workflow Task. On a Store, Workflow code writes through a Local Activity, so its writes carry a
170+
A Workflow run Producer. Workflow code that writes in its Workflow Task writes as this
171+
Producer, with that task as the epoch. A write that it makes through a Local Activity has a
172172
Local Activity Producer.
173173
"""
174174

@@ -180,7 +180,9 @@ class WorkflowProducer(google.protobuf.message.Message):
180180
"""Required. The run id of the Workflow run, not of its chain. Each run is its own Producer."""
181181
@property
182182
def epoch(self) -> global___WorkflowTaskEpoch:
183-
"""The Workflow Task of the write."""
183+
"""The Workflow Task of the write. Workflow code leaves it empty, and the SDK sets it before
184+
the write goes to the Store.
185+
"""
184186

185187
def __init__(
186188
self,

0 commit comments

Comments
 (0)