Expand description
The liveness sweep for a container agent’s background tasks (background_task_sweep does a host pane’s).
A container pane’s agentmux-bashwrap reports the process id it runs under in the container’s own pid
namespace. It is filed beside the registry row, never in its host pid column
(storage::background_container_calls), so nothing on the host can signal it. This pass checks each such
row inside its container, through the Docker exec API, and ends it when the process is gone:
- The process is gone, or the pid now belongs to a process that started after the task did (the same
start-time guard
pid_alive_sincegives a host pid): the row ends asstopped. - The container is not running (the exec is refused because it is stopped or gone): every row of the
panes that ran in it ends at once, each at its last sighting, as when a container is started again
(
background_task_exit::end_for_restarted_container). - Anything else (Docker unreachable, the probe timed out or printed nothing readable) leaves the row as it is: it is only ever ended on evidence.
Only the probe talks to Docker (ContainerProbe); this pass is plain logic over the store.
Enums§
- Verdict
- What the container says of one process.
Traits§
- Container
Probe - Checks a process inside a container. The Docker-backed one is
container_task_probe.
Functions§
- sweep
- One pass: end the container-held rows that are over. Returns the panes whose rows changed.
- verdict_
of - The verdict a probe’s printed answer gives:
gone,alive, oralive <start of the process, unix seconds>.