Skip to main content

inputs

Function inputs 

Source
pub async fn inputs(
    db: &Database,
    dag: &Dag,
    run_id: &str,
    __arg3: (&Task, i32),
    resolved: &mut Resolved,
) -> Result<Value, InputsError>
Expand description

A task instance’s inputs, as JSON: the whole outputs of the upstream tasks it uses (not its lanes), and for an instance of a mapped task its own arguments under $expand, with the outcome of each taken from a lane under $expand_outcomes (decision 76), and those its runner builds in their stored form under $expand_values (decision 118). A lane reads its one upstream instance; a mapped list is resolved once per resolved.

§Errors

InputsError::Db if the database fails; InputsError::NotArguments for an element of .expand_kwargs() over a mapped task that isn’t a dict (a mapped list’s elements are checked when the task expands).