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
2 times, most recently
from
December 2, 2026 23:24
b184ddb to
e95bb88
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 3, 2026 08:49
e95bb88 to
0676296
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 3, 2026 09:58
0676296 to
bf26d40
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 3, 2026 10:04
bf26d40 to
088aad0
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 3, 2026 10:14
088aad0 to
52c7788
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
This PR lets Workflow code create, describe and append to Streams. Core runs appends.
Create and describe use Local Activities. New Workflows disable Workflow Task chunking.
Why?
Replay must return the same append results without repeating Store writes.
Core records these results in History. This needs Core through
#1882.
Reviewer's guide
Review after #2129.
temporalio/worker/_workflow_streams.pyand the bridge that calls Python Stores.StreamConfigsupplies Store names and limits to Core.Checklist