Skip to main content

is_up

Function is_up 

Source
fn is_up(block: &Block) -> bool
Expand description

Whether the agent in block is up, as the Agents list shows it: a persistent agent has a running process, and a container agent has its controller, which holds no process between turns (each turn is a docker exec, so its status stays init or done while the agent waits for its next message). Without the second half a restart left every idle container agent off the exit list, “wanted running” and stopped, with nothing to start it (task #2283). A stop leaves the container agent’s controller registered at done too, so the controller alone says nothing: it must also be wanted running, and not stopped in this run.