Repository navigation
Conversation
This was referenced Dec 2, 2026
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 2, 2026 22:59
029ddfb to
e638446
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 2, 2026 23:14
e638446 to
b184ddb
Compare
Workflow code can't call a Store itself, since a replay must get the same answers. Core runs each append on the Python Store through the bridge and records its result in History, and a create or a describe runs in a Local Activity of the SDK. In this commit a Workflow read reaches that Local Activity, which refuses it, so the Workflow Task fails.
A Stream create or describe runs as a Local Activity, and a Workflow Task that waits for one can complete with no command. Chunking merges such tasks in a replay, so Workflow code can get a result in another activation than in the first run. Core records the choice in the first completed Workflow Task, so a Workflow that started earlier keeps it.
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 2, 2026 23:24
b184ddb to
e95bb88
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 creates, describes and appends to Streams. Core runs the appends; a create and a describe run in a Local Activity. New Workflows turn Workflow Task chunking off.
Why?
Workflow code can't call a Store itself, because a replay must get the same results, so Core runs the appends and records them in History. This needs Core only up to Core #1883.
Reviewer's guide
Review after #2129. Read the 2 commits in order.
temporalio/worker/_workflow_streams.py, and the bridge code that lets Core call a Python Store.Checklist