Expose container registry for centralized cleanup #25
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: glenux/docmachine-cli#25
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Current behavior
ProcessManager in
src/process_manager.cronly tracks OS process IDs and has no awareness of the container that each subprocess created. When a docker/podman child dies unexpectedly or the CLI exits before the child is gone, there is no metadata to call engine-specific cleanup helpers, so containers continue running until the operator intervenes.Desired behavior
at_exithandler to iterate over registry entries and call the appropriate engine cleanup helpers so containers are killed/removed reliably.Technical notes
DocMachine::Container, and guard it with a mutex so concurrent runners stay safe.Local task: 11aa04