Skip to content

runtimestate: Remove stalled state for non-stalled runtimes#68

Merged
JoshVanL merged 3 commits intodapr:mainfrom
JoshVanL:remote-stalled-on-non-stalled
Mar 4, 2026
Merged

runtimestate: Remove stalled state for non-stalled runtimes#68
JoshVanL merged 3 commits intodapr:mainfrom
JoshVanL:remote-stalled-on-non-stalled

Conversation

@JoshVanL
Copy link

@JoshVanL JoshVanL commented Mar 4, 2026

Fix the stalled state being set for runtimes that were stalled at one point but are no longer stalled.

Fix the stalled state being set for runtimes that were stalled at one
point but are no longer stalled.

Signed-off-by: joshvanl <me@joshvanl.dev>
@JoshVanL JoshVanL requested a review from a team as a code owner March 4, 2026 17:35
Copilot AI review requested due to automatic review settings March 4, 2026 17:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes orchestration runtime state handling so that a previously-set Stalled flag is cleared once subsequent non-stalled history events are successfully processed, preventing runtimes from incorrectly remaining in a stalled status after progressing.

Changes:

  • Clear s.Stalled on any successfully-processed non-stalled history event in addEvent.
  • Add unit tests covering stalled state set/clear behavior for new events and replayed (old) events.
  • Add a regression test ensuring stalled state is preserved when AddEvent returns a duplicate-event error.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
backend/runtimestate/runtimestate.go Clears prior stalled state when processing a non-stalled event successfully.
backend/runtimestate/runtimestate_test.go Adds coverage for stalled-state transitions across new events, old history replay, and error paths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

JoshVanL and others added 2 commits March 4, 2026 17:49
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Josh van Leeuwen <me@joshvanl.dev>
@JoshVanL JoshVanL merged commit 321bd77 into dapr:main Mar 4, 2026
2 checks passed
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