Skip to main content

wanted_running_is_idle

Function wanted_running_is_idle 

Source
pub fn wanted_running_is_idle(
    state: AgentRuntimeState,
    detail: Option<String>,
    desired: AgentDesiredState,
    has_controller: bool,
) -> (AgentRuntimeState, Option<String>)
Expand description

What a viewer sees of an agent that the availability view calls stopped but its block says should run and a controller holds: it is waiting for a message to start it, which is idle. With no controller (the server restarted and nothing resumed it yet) it stays stopped: the Swarm lists only controller-backed agents as live, so an idle row there would be listed nowhere, with no Start.