Skip to content

feat!: add a separate started handler for the consumer's /started - #27

Merged
paullatzelsperger merged 1 commit into
mainfrom
feat/started-processor
Nov 10, 2026
Merged

paullatzelsperger merged 1 commit into
mainfrom
feat/started-processor

Conversation

@paullatzelsperger

Copy link
Copy Markdown
Contributor

Splits the consumer's /started from the provider's /start processor, like the Java SDK's OnStarted. The signaling wire API is unchanged (same endpoints, bodies and status codes; the HTTP tests pass unmodified).

  • New WithStartedProcessor(DataFlowHandler): runs on /started with the received DataAddress already on the flow; the SDK then transitions to STARTED.
  • WithStartProcessor now only serves the provider's /start.
  • A duplicate /started is acknowledged without invoking the handler, like suspend/terminate/completed.
  • Fixes by construction: an address returned by a start processor could replace the address a push consumer handed out at prepare (regression test added).
  • Consumer samples, tests and README updated.

Breaking (Go API only): consumer logic for /started moves from WithStartProcessor to WithStartedProcessor; /started always ends in STARTED.

🤖 Generated with Claude Code

The consumer's /started no longer runs the start processor, which now
serves only the provider's /start. A new WithStartedProcessor
(DataFlowHandler) runs with the received DataAddress on the flow; the SDK
then transitions to STARTED. A duplicate /started is acknowledged without
invoking the handler. An address returned by a start processor can no
longer replace the address a push consumer handed out at prepare.

The signaling wire API is unchanged.

BREAKING CHANGE: consumer logic for /started moves from
WithStartProcessor to WithStartedProcessor; /started always ends in
STARTED.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@paullatzelsperger
paullatzelsperger merged commit 29d62d2 into main Nov 10, 2026
6 checks passed
@paullatzelsperger
paullatzelsperger deleted the feat/started-processor branch November 10, 2026 11:54
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.

3 participants