Skip to content

Close native Streams with their owner chain - #93

Closed
moetemp wants to merge 5 commits into
moe/jetty/v2/t4-functional-testsfrom
moe/jetty/v2/t5-close-with-run
Closed

moetemp wants to merge 5 commits into
moe/jetty/v2/t4-functional-testsfrom
moe/jetty/v2/t5-close-with-run

Conversation

@moetemp

@moetemp moetemp commented Oct 22, 2026 •

Copy link
Copy Markdown
Owner

This PR ties a native Stream to its owner’s Workflow run chain and closes it when the chain ends. Later layers refine the terminal status.

This layer belongs to the frozen Jetty server prototype. The active Streams contract has no close operation and does not require a server change.

Current Streams design and project plan.

Reviewer's guide

Review this as a frozen prototype. The active Streams API uses a separate contract.

  1. Start with chasm/lib/stream/owner.go. A run ending must not close the Stream while its Workflow chain continues.
  2. Read the owner-result and terminated-owner cases in tests/stream_test.go. Check which outcome readers receive when the chain ends.

With close_with_run (S100) the Stream checks the owner on an interval and closes with the result or failure of the chain's last run, terminate and timeout included.
…close-with-run

# Conflicts:
#	tests/stream_test.go
…close-with-run

# Conflicts:
#	chasm/lib/stream/gen/streampb/v1/message.pb.go
@moetemp moetemp changed the title [Jetty] Closed a Stream with its owner's run chain. Close native Streams with their owner chain 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