Skip to content

[FROZEN][Jetty] Let a standalone Activity own and write its own stream. - #282

Closed
moetemp wants to merge 17 commits into
moe/jetty/v3/J7-client-waitfrom
moe/jetty/v3/J8-activity-owner
Closed

moetemp wants to merge 17 commits into
moe/jetty/v3/J7-client-waitfrom
moe/jetty/v3/J8-activity-owner

Conversation

@moetemp

@moetemp moetemp commented Oct 18, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR lets a standalone Activity own a stream. activity_handle() gives it its own stream, an Activity writes an attempt built from the attempt's start time, and delete_activity_streams removes the streams of an Activity id.

Why?

A standalone Activity has no Workflow stream to write to, and a reset sets its Temporal attempt back to one, so the attempt alone can't order its writes.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

# Conflicts:
#	temporalio/contrib/streams/_handles.py
#	tests/contrib/streams/test_unsupported_owners.py
An Activity that owns a stream picks its own or its Workflow's stream with it. A Workflow writes only its own.
# Conflicts:
#	temporalio/contrib/streams/_handles.py
#	temporalio/contrib/streams/_local_activity.py
# Conflicts:
#	temporalio/contrib/streams/_handles.py
This layer writes the attempt's start above the Temporal attempt, so the test reads both attempts from the records.
@moetemp moetemp changed the title [Jetty] Let a standalone Activity own and write its own stream. [FROZEN][Jetty] Let a standalone Activity own and write its own stream. Oct 21, 2026
@moetemp

moetemp commented Oct 22, 2026

Copy link
Copy Markdown
Owner Author

Closed as unused. Jetty and Bridge are frozen, and the Brook v4 stack doesn't build on this PR. The branch stays, so this PR can be reopened.

@moetemp moetemp closed this Oct 22, 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