Skip to main content

decide_here

Function decide_here 

Source
pub(crate) async fn decide_here(
    state: &AppState,
    ask: &ContainerAsk,
    caller: &AgentDefinition,
    source: &AgentDefinition,
    provider: &str,
) -> Result<Placement, SpawnError>
Expand description

decide for a caller caller and a source defined by source, asking this machine whether Docker is there. provider is the harness the new agent runs. A call that says nothing about where gets the setting’s default: a container, when the harness has an image and Docker answers, and otherwise as its source runs (never refused, since nobody asked for a container). A caller or a source that already runs in a container keeps what it did.