Skip to content

Graceful SIGTERM shutdown: cancel workers, destroy containers, save state#74

Closed
BoomMccloud wants to merge 1 commit intomainfrom
agent/issue-73
Closed

Graceful SIGTERM shutdown: cancel workers, destroy containers, save state#74
BoomMccloud wants to merge 1 commit intomainfrom
agent/issue-73

Conversation

@BoomMccloud
Copy link
Owner

This PR implements graceful SIGTERM shutdown as specified in issue #73.

Key changes:

  • Added TaskRunner.shutdown() to cancel all active workers and destroy sandbox containers.
  • Registered SIGTERM and SIGINT handlers in __main__.py to trigger graceful teardown.
  • Removed manual container cleanup and state deletion from deploy.sh.
  • Added unit tests to verify the shutdown logic.

@BoomMccloud BoomMccloud closed this Mar 6, 2026
@BoomMccloud BoomMccloud deleted the agent/issue-73 branch March 6, 2026 07:30
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