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
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 3, 2026 10:14
088aad0 to
52c7788
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 3, 2026 16:59
52c7788 to
5eba2b6
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
4 times, most recently
from
December 4, 2026 00:26
b0794c6 to
73788b7
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 5, 2026 00:53
f538dd2 to
a26bb3c
Compare
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 5, 2026 06:52
a26bb3c to
54b45ce
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.
Explain once why Workflow code never calls a Store: an append is a Core command whose result a marker records, and create and describe run as Local Activities. Say why the selector must be stable on replay and why a Store outage fails the task. Only docstrings, comments and the README change.
moetemp
force-pushed
the
moe/streams-workflow-appends
branch
from
December 6, 2026 10:15
54b45ce to
16248a2
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 can create, describe and append to Streams. Core runs the appends. Create and describe run as Local Activities, because Core has no commands for them. New Workflows turn off Workflow Task chunking.
Why?
A replay must give Workflow code the same append results without writing to the Store again. Core records each result in History, so the replay takes it from there. This needs Core up to #1882.
Reviewer's guide
Review after #2129.
temporalio/worker/_workflow_streams.pyand the bridge code that calls the Python Stores.StreamConfigintemporalio/streams.py, including what a selector must do on replay. Then check how Store names and limits reach Core.Checklist