Repository navigation
Conversation
This was referenced Dec 2, 2026
moetemp
force-pushed
the
moe/streams-workflow-reads
branch
2 times, most recently
from
December 2, 2026 23:14
8a09e49 to
b5dd883
Compare
Core runs each read and records the offset, the count and the digest of its page, so a replay reads the Records from the Store again and checks them. `stream_read_time` bounds how long reads keep a Workflow Task open, and `StreamReplayError` lets a Workflow fail when Records changed.
A ref in Workflow or Activity input must keep its body type, since a read converts each body to it. Only `StreamRef` takes the two new decoding paths, since a change for any other type would alter the replay of existing Workflow Histories.
moetemp
force-pushed
the
moe/streams-workflow-reads
branch
from
December 2, 2026 23:24
b5dd883 to
7d0638b
Compare
This branch has not been deployed
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.
What was changed
Workflow code reads a Stream, and a
StreamRef[T]decodes in a dataclass, a list and an optional. The Core pin moves to the head of Core #1819, with the read protos regenerated.Why?
A replay reads the Records again from the Store, so History stays small. This is the only Python PR that waits for Core #1819.
Reviewer's guide
Review after #2187. Read the 2 commits in order.
stream_read_time.StreamRef[T]in a dataclass, a list and an optional.Checklist