Skip to content

Fix SAA unpause for keep-paused reset#10914

Open
fretz12 wants to merge 1 commit into
fredtzeng/saa-preserve-retry-backofffrom
fredtzeng/saa-unpause-after-reset
Open

Fix SAA unpause for keep-paused reset#10914
fretz12 wants to merge 1 commit into
fredtzeng/saa-preserve-retry-backofffrom
fredtzeng/saa-unpause-after-reset

Conversation

@fretz12

@fretz12 fretz12 commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

What changed?

Fixed SAA unpause handling for activities in RESET_REQUESTED with ResetKeepPaused=true.

Unpause now clears only the keep-paused intent while preserving the deferred reset. Added an e2e standalone activity test covering pause → reset with keep_paused=true → unpause before the worker reports back.

Why?

A deferred reset can carry two separate intents: apply the reset after the in-flight worker attempt reports back, and keep the reset attempt paused.
Before this change, unpause did not clear the keep-paused intent while the reset was still deferred, so the activity could remain paused after the worker failed even though the user had already unpaused it.

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)

When a running activity has a deferred reset with keep_paused=true, unpause should clear only ResetKeepPaused while preserving the pending reset.
@fretz12 fretz12 marked this pull request as ready for review July 6, 2026 03:44
@fretz12 fretz12 requested review from a team as code owners July 6, 2026 03:44
@fretz12 fretz12 requested a review from dandavison July 6, 2026 03:44
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