Skip to main content

run_dag_ctx

Function run_dag_ctx 

Source
pub fn run_dag_ctx(
    command: &DagCtxCommand,
    env: &BTreeMap<String, String>,
    version: &str,
    out: &mut impl Write,
) -> Result<(), String>
Expand description

Runs a schedr dag-ctx command; the error is the message for stderr.

§Errors

Outside a task, when the channel is gone, or when the agent refuses the call or the field asked for isn’t there.