Skip to main content

graph_allowed

Function graph_allowed 

Source
pub(crate) fn graph_allowed(
    state: &AppState,
    drone: &DroneDefinition,
) -> Result<(), String>
Expand description

Ok when the graph of drone, about to be saved, still passes for every job that is on and runs it, directly or by calling it from the drone the job runs, or what stops it. A drone nobody runs, and a job that is paused, are not checked here: the job is checked when it is turned on.