Skip to content

ateapi: preserve crashes during lifecycle finalization - #1444

Open
Eitan Yarmush (EItanya) wants to merge 1 commit into
agent-substrate:mainfrom
kagent-dev:fix/preserve-crashed-lifecycle
Open

ateapi: preserve crashes during lifecycle finalization#1444
Eitan Yarmush (EItanya) wants to merge 1 commit into
agent-substrate:mainfrom
kagent-dev:fix/preserve-crashed-lifecycle

Conversation

@EItanya

@EItanya Eitan Yarmush (EItanya) commented Sep 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • preserve CRASHED when worker deletion races with resume or suspend finalization
  • keep suspend state validation across the worker-release/refetch window
  • return FailedPrecondition instead of reporting a successful invalid transition
  • cover the end-to-end workflow races plus the inner release-window interleaving

Fixes #1443

Testing

  • go test ./cmd/ateapi/internal/controlapi/... -count=1

@EItanya
Eitan Yarmush (EItanya) force-pushed the fix/preserve-crashed-lifecycle branch from 60fbab0 to a74f853 Compare September 3, 2026 18:41
@EItanya
Eitan Yarmush (EItanya) marked this pull request as ready for review September 3, 2026 22:06
Signed-off-by: Eitan Yarmush <eitan.yarmush@solo.io>
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.

[Bug]: Lifecycle finalizers can overwrite a concurrent worker-deletion crash

1 participant