Skip to main content

run_drone

Function run_drone 

Source
pub async fn run_drone(
    drone_id: String,
    graph: DroneGraph,
    trigger: Value,
    __arg3: (Option<f64>, Option<Persist>),
) -> Result<RunHandle, String>
Expand description

Run the drone end-to-end. Returns a handle whose events channel surfaces per-block lifecycle, and a final_states mutex callers can snapshot for the run-history record. trigger is what started the run ({{trigger.*}}); Null when nothing did. run_cap_usd ends the run before its next block once its Agent blocks have spent that much (a job’s per-run cap); None is no cap, as for a run started by hand. persist says where to keep the run’s checkpoints; None keeps none.