Skip to content

Remove 'Outcome' types, moving fields to parent protos - #849

Merged
chrsmith merged 2 commits into
feature/worker-callbacksfrom
chrsmith/feature-callbacks
Aug 7, 2026
Merged

Remove 'Outcome' types, moving fields to parent protos#849
chrsmith merged 2 commits into
feature/worker-callbacksfrom
chrsmith/feature-callbacks

Conversation

@chrsmith

@chrsmith chrsmith commented Aug 7, 2026

Copy link
Copy Markdown

What changed?
Why?

There are two changes in this PR, both breaking changes. (But since the feature is under development, this won't impact users in any way.)

(1) Remove the callbackpb.CallbackOutcome proto, and instead move the success/failure fields directly into callbackpb.CallbackInfo. Do the same for OnCompleteRequest, removing the OnCompleteRequest.Outcome message.

It's extremely unlikely we would ever add a new variant for the callback's result, and having the extra layer of indirection made the SDK and server-side code cumbersome.

(2) Have OnCompleteRequest.result variant success be a commonpb.Payload instead of a commonpb.Payloads.

The Temporal API makes it look as if a Workflow can return multiple values. (i.e. a commonpb.Payloads.) But in reality, the SDK only ever deals with a single value (commonpb.Payload).

And the extra layer of indirection via commonpb.Payloads also made the SDK and server-side code more cumbersome.

Breaking changes

Yes. But this is still a WIP feature branch. The only person being broken is, alas, @chrsmith .

@chrsmith
chrsmith requested review from a team as code owners August 7, 2026 21:52
@chrsmith
chrsmith requested a review from VegetarianOrc August 7, 2026 21:52
@chrsmith
chrsmith merged commit de7a283 into feature/worker-callbacks Aug 7, 2026
2 checks passed
@chrsmith
chrsmith deleted the chrsmith/feature-callbacks branch August 7, 2026 21:55
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.

2 participants