Skip to content

[FROZEN][Jetty] Closed owner Activity streams in the Workflow publish call. - #8

Closed
moetemp wants to merge 20 commits into
moe/jetty/sj3-wake-attachmentsfrom
moe/jetty/sj4-activity-closes
Closed

moetemp wants to merge 20 commits into
moe/jetty/sj3-wake-attachmentsfrom
moe/jetty/sj4-activity-closes

Conversation

@moetemp

@moetemp moetemp commented Oct 17, 2026

Copy link
Copy Markdown
Owner

What changed?

This PR closes owner Activity streams in the Workflow publish call. PublishWorkflowTaskRequest gets resolved_owner_activities, the Activities of the activation's ResolveActivity jobs that lang scheduled with STREAM_OWNER_HEADER. After the records land, the service closes each topic the Activity wrote, in the background. A completed Activity closes with an empty result, and a failed or cancelled one with the failure the server gave. ShutdownWorker waits for the closes.

Reviewed in moetemp/sdk-rust#173, where Core closed the streams at the resolution.

Why?

Lang sets the owner header, so it knows which resolutions end an owner's streams. The close runs before Core takes the completion. A rerun of a refused task closes again, and the store answers with the first close.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

Replay never sends the close again, so a close left in the background was lost when the process stopped. The proto also asks lang to publish for an activation that only resolves an owner.
…vity-closes

# Conflicts:
#	crates/streams/src/lib.rs
#	crates/streams/src/workflow.rs
#	crates/streams/tests/workflow_output.rs
@moetemp moetemp changed the title [Jetty] Closed owner Activity streams in the Workflow publish call. [FROZEN][Jetty] Closed owner Activity streams in the Workflow publish call. 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