Skip to content

Conversation

@spkane31
Copy link
Contributor

What changed?

Activity.HandleStarted now wraps FailedPrecondition errors from invalid state transitions into ObsoleteMatchingTask errors.

Why?

When matching dispatches an activity task that's already in a terminal state (COMPLETED, FAILED), the state machine returns a FailedPrecondition error, which is a retryable error.

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

Potential risks

Minimal, fixes a currently broken path

@spkane31 spkane31 requested review from a team as code owners January 22, 2026 20:43
@bergundy
Copy link
Member

I'm addressing this here already: #9115. I will steal your tests though. Thanks.

@bergundy bergundy closed this Jan 22, 2026
@bergundy bergundy deleted the spk/invalid-transition-saa branch January 22, 2026 21:38
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