Moritz Rocholl
03/05/2021, 12:34 PMwith Flow("A Flow") as my_flow:
task_res = my_task()
task.run()
followed by:
latest_flow_state = my_flow.last_successful_run
latest_flow_state.tasks[task_res]
nicholas
with Flow("A Flow") as my_flow:
task_res = my_task()
last_flow_state = task.run()
print(last_flow_state)
# <Success: "All reference tasks succeeded.">
the return of flow.run
will contain the state of the run and all its associated tasks 🙂Moritz Rocholl
03/08/2021, 3:38 PMnicholas
query {
flow_run(where: { flow_id: { _eq: "<<YOUR FLOW ID>>" } } ) {
id
state
# any other data you're interested in
}
}
Moritz Rocholl
03/08/2021, 3:47 PMnicholas