Skip to main content

start_job_drone_run

Function start_job_drone_run 

Source
pub(crate) async fn start_job_drone_run(
    state: &AppState,
    drone_id: &str,
    trigger: Value,
    __arg3: (&str, Option<f64>),
) -> Result<String, String>
Expand description

Start the run a job’s drone action asks for. job_run_id is the job run’s row in the ledger, which runs until the drone does; run_cap_usd is the job’s per-run cap, which ends the run before its next block once its Agent blocks have spent it. Returns the Drone run’s id.