pub async fn sources(
db: &Database,
dag: &Dag,
run_id: &str,
tasks: &BTreeSet<&TaskId>,
known: impl Fn(&TaskId, i32) -> Option<TaskInstanceState>,
) -> Result<Sources, DbError>Expand description
The whole outputs and outcomes of tasks in a run, to resolve mapped values against: a
mapped task’s output is the list of its instances’ outputs, in map_index order, null
for one that didn’t succeed (decision 77). known gives an instance’s state when the
caller knows it ahead of the database (a result being applied, its state not stored yet,
B78): it is used instead of the stored one.
§Errors
DbError if the database fails.