Repository navigation
Conversation
`datetime.fromtimestamp(0)` reads the local time zone, so on a host west of UTC the default times of `ActivityEnvironment` fall before 1970. SDK Core and the client both refuse a Stream append whose Producer has an attempt time before 1970.
A Store is the service that keeps the Records of a Stream. The contract says what client, Activity and Workflow calls need from a Store, and `StreamConfig` registers the Stores of a client and its Workers.
Tests and local runs need a Store with no other service. The memory Store keeps its Streams in plain Python data and applies the rules of `StreamStore` in their order, so it also shows what a Store does.
An Activity that appends each model token pays one Store call for each token. The appender batches them with one write in flight, and stops at the first failed batch so that a reader sees no gap. `current_producer` and `as_producer` let resumed Activity work write as its first Producer.
1 task done
moetemp
marked this pull request as ready for review
December 2, 2026 22:59
2 tasks done
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
The Stream Store layer of the Python SDK: the
StreamStorecontract,StreamConfigandStreamError, the test StoreMemoryStreamStore, andBufferedAppenderwithcurrent_producerandas_producer. It also sets UTC for the default times ofActivityEnvironment.Why?
Every Stream call goes through a Store that the application registers in
StreamConfig. None of this needs a Core change, so it can merge right after #2128.Reviewer's guide
Review after #2128. Read the 4 commits in order.
Checklist