Skip to main content

end_agents_left_by_srv

Function end_agents_left_by_srv 

Source
pub(super) fn end_agents_left_by_srv(data_dir: &Path, srv_pid: Option<u32>)
Expand description

srv is gone. An agent CLI it didn’t close (srv was killed, crashed, or ran out of time) still runs in its own process group: end it and what it started. srv deletes agent-roots.json when it closed every agent itself. srv_pid is the pid taken when srv was spawned: tokio’s Child::id() is None once the child has been waited on, which is the case here.