Skip to content

Handle graceful worker termination#517

Open
sfunkenhauser wants to merge 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_graceful_termination
Open

Handle graceful worker termination#517
sfunkenhauser wants to merge 1 commit into
agent-substrate:mainfrom
sfunkenhauser:worker_graceful_termination

Conversation

@sfunkenhauser

Copy link
Copy Markdown
Contributor

Part of [#23](#23

The overall plan is:

  1. Trap SIGTERM in the ateom, and forward SIGTERM to all application containers.
  2. Once all application containers exit, ateom will exit itself.
  3. The workerpool syncer will mark workers as 'DRAINING' when a pod deletion is triggered (pod.DeletionTimestamp) to prevent actors from being scheduled. On the pod Deleted event, the worker and actor (if it was assigned) will be cleaned up.

This PR implements 3), there are 2 more PRs coming which will implement 1) and 2) for each ateom (gvisor and uVM).

@sfunkenhauser

Copy link
Copy Markdown
Contributor Author

@zoez7 Zoe Zhao (zoez7) self-assigned this Jul 24, 2026
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