Skip to content

Conversation

@yycptt
Copy link
Member

@yycptt yycptt commented Dec 1, 2025

What changed?

  • Properly terminate workflow in RespondWorkflowTaskFailed to flush buffered events.

Why?

  • workflow.TerminateWorkflow util func performs failing started workflow task, flushing buffered event and terminating workflow, but it won't work properly if workflow task has already been failed.

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)

@yycptt yycptt requested a review from yiminc December 1, 2025 19:37
@yycptt yycptt requested review from a team as code owners December 1, 2025 19:37
@yycptt yycptt enabled auto-merge (squash) December 1, 2025 20:07
@yycptt yycptt merged commit 823950b into temporalio:main Dec 1, 2025
57 checks passed
@yycptt yycptt deleted the fix-respond-wt-failed branch December 1, 2025 20:29
Shivs11 pushed a commit that referenced this pull request Dec 1, 2025
## What changed?
- Properly terminate workflow in RespondWorkflowTaskFailed to flush
buffered events.

## Why?
- `workflow.TerminateWorkflow` util func performs failing started
workflow task, flushing buffered event and terminating workflow, but it
won't work properly if workflow task has already been failed.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [x] added new functional test(s)
@temporal-cicd temporal-cicd bot mentioned this pull request Dec 1, 2025
temporal-cicd bot added a commit that referenced this pull request Dec 1, 2025
Patch release 1.30.0 with PR(s):
- [#8714](#8714)
- [#8725](#8725)

---------

Co-authored-by: Shahab Tajik <shahab@temporal.io>
Co-authored-by: Shivam Saraf <shivam.saraf@temporal.io>
Co-authored-by: Yichao Yang <yichao@temporal.io>
Co-authored-by: temporal-cicd[bot] <temporal-cicd[bot]@users.noreply.github.com>
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