Skip to content

fix(sandbox): wake agent Wait when shutdown cancels the reaper - #5912

Open
ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5329-reaper-cancel-wake/ericcurtin
Open

ericcurtin wants to merge 1 commit into
ai-openshell:mainfrom
ericcurtin:fix/5329-reaper-cancel-wake/ericcurtin

Conversation

@ericcurtin

Copy link
Copy Markdown
Contributor

Summary

Record an error when the agent reaper is dropped, so a parked Wait returns instead of using the full shutdown bound.

Related Issue

Closes #5329

Changes

  • ExitRecorder records the exit, or an error on drop, and wakes waiters.
  • Share the wait loop as wait_for_exit.

Testing

  • Checks appropriate to the affected code and behavior pass
  • Unit tests added/updated (if applicable)
  • E2E tests added/updated (if applicable)

cargo test -p openshell-sandbox --lib (new and SIGTERM tests), cargo clippy, cargo fmt.

Checklist

  • Follows Conventional Commits
  • Commits are signed off (DCO)
  • Architecture docs updated (if applicable)

@ericcurtin

Copy link
Copy Markdown
Contributor Author

@drew @FrostGod PTAL when you get a chance, and could you please mark #5329 state:accepted so the issue check can pass? /ok to test 61c0d4bb4d507167783c4d5d6f76240bef472611 if it looks good. Thank you!

This branch has not been deployed

No deployments
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(sandbox): agent Wait does not return when shutdown cancels the reaper

1 participant