async fn launch_run(
state: &AppState,
drone_id: &str,
trigger: Value,
job_run_id: Option<&str>,
run_cap_usd: Option<f64>,
by_agent: Option<&str>,
) -> Result<String, String>Expand description
Start a run of drone_id with trigger as its input. With a
job_run_id the ledger row is that job run’s; without one the run
gets a manual row of its own, started by by_agent when an agent fired it, else the operator.