Skip to content

Trim external signal tasks when workflow closes - #12033

Open
xwduan wants to merge 1 commit into
mainfrom
fix/trim-signal-task-on-workflow-close
Open

xwduan wants to merge 1 commit into
mainfrom
fix/trim-signal-task-on-workflow-close

Conversation

@xwduan

@xwduan xwduan commented Sep 11, 2026

Copy link
Copy Markdown
Contributor

Summary

  • trim newly generated external signal transfer tasks when the source workflow closes in the same transaction
  • preserve all other transfer tasks
  • avoid persisting work that both active and standby executors discard for closed workflows

Testing

  • go test ./service/history/workflow -run TestMutableStateSuite/.*/TestCloseTransactionTrimTasksForClosedWorkflow -count=1

@xwduan
xwduan requested review from a team as code owners September 11, 2026 20:51
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