Skip to content

Fix SAA unpause for keep-paused reset#10914

Merged
fretz12 merged 2 commits into
feature/activity-operator-cmdsfrom
fredtzeng/saa-unpause-after-reset
Jul 8, 2026
Merged

Fix SAA unpause for keep-paused reset#10914
fretz12 merged 2 commits into
feature/activity-operator-cmdsfrom
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)

fretz12 added 2 commits July 2, 2026 19:26
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 review from dandavison and spkane31 July 6, 2026 03:44
Base automatically changed from fredtzeng/saa-preserve-retry-backoff to feature/activity-operator-cmds July 8, 2026 21:07
@fretz12 fretz12 merged commit d90cf35 into feature/activity-operator-cmds Jul 8, 2026
70 of 73 checks passed
@fretz12 fretz12 deleted the fredtzeng/saa-unpause-after-reset branch July 8, 2026 21:07
fretz12 added a commit that referenced this pull request Jul 10, 2026
## 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?
- [X] built
- [X] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [X] added new functional test(s)
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