pub(crate) fn decide(
ask: &ContainerAsk,
caller_in_container: bool,
source_in_container: bool,
source_image: &str,
docker: Result<(), String>,
) -> Result<Placement, SpawnError>Expand description
Check what ask wants, without making anything. caller_in_container: the asking agent runs in a container.
source_in_container and source_image: how the source (the leader, or the template) runs, which runtime and
container_image default to. docker: whether a container can be made here, or why not.