Prefect 1.0
If have a "flow of flows", which calls
wait_for_flow_run
several times.
I want this parent flow's success to depend on the success of all child flows.
I've tried setting
upstream_tasks
to the result of
wait_for_flow_run
, but I realize that that's a
FlowRunView
object, not a
Task
.
From the child flow, I can
get_tasks
, and set
upstream_tasks
to that. But I have some tasks I allow to fail in the child flows (they are not reference tasks of the child flow.)
What I'd really like to do is to be able to reference
<child_flow>.state
, and set the parent flow's reference tasks to be expecting a
<Success: "All reference tasks succeeded.">
Is there a built-in way of going about this, instead of just manually inspecting the child flow results, and raising the appropriate SIGNAL ?