Skip to content

Read Jetty Streams from Workflow code - #353

Closed
moetemp wants to merge 27 commits into
moe/jetty/v2/j2-native-pluginfrom
moe/jetty/v2/j3-workflow-reads
Closed

moetemp wants to merge 27 commits into
moe/jetty/v2/j2-native-pluginfrom
moe/jetty/v2/j3-workflow-reads

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR adds Workflow Stream readers for native, Redis and memory backends. This layer records page data in History. Later Jetty layers replace native pages with recorded positions and digests.

This is a frozen Jetty prototype. See the Brook design and Python implementation for current work.

The November review inspected the source and existing test coverage. It did not rerun the frozen native server stack.

Reviewer's guide

This is a frozen prototype. Review current Streams behavior in the Python implementation.

  1. Start with temporalio/contrib/streams/_workflow_reader.py, then tests/contrib/streams/test_workflow_reads.py. Check cursor progress, empty pages, cancellation, and replay.
  2. This layer records page contents in History. Later native read layers change that retention and replay contract.

…kflow-reads

# Conflicts:
#	temporalio/contrib/streams/native.py
…kflow-reads

# Conflicts:
#	temporalio/contrib/streams/native.py
…kflow-reads

# Conflicts:
#	temporalio/contrib/streams/_errors.py
#	temporalio/contrib/streams/redis.py
#	temporalio/contrib/streams/workflow.py
…kflow-reads

The read Local Activity takes the Stream runtime of the Worker's client from the attempt, since each client has its own (S123). The two-backend test marks Redis as the default, as S119 asks.
@moetemp moetemp changed the title [Jetty] Added Workflow reads of a Stream on both backends. Read Jetty Streams from Workflow code Nov 27, 2026
@moetemp moetemp closed this Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant