Garret Cook
07/17/2021, 2:19 AMGarret Cook
07/17/2021, 2:43 AMKevin Kho
Garret Cook
07/17/2021, 3:03 AMGarret Cook
07/17/2021, 3:03 AMGarret Cook
07/17/2021, 3:04 AMGarret Cook
07/17/2021, 3:04 AMGarret Cook
07/17/2021, 3:06 AMKevin Kho
FlowRunView.from_flow_run_id(prefect.context.get("flow_run_id"))
inside the state handler. After that, you can use *FlowRunView.get_all_task_runs*()
, which gives you a list of TaskRunView
objects. Each TaskRunView
object can be used to get the result using the .get_result()
method. This is all new in 0.15.0 so I haven't tried it myself quite yet but I think it should workGarret Cook
07/17/2021, 3:14 AMGarret Cook
07/17/2021, 3:15 AMGarret Cook
07/17/2021, 3:15 AMKevin Kho
Garret Cook
07/17/2021, 3:17 AMKevin Kho
Garret Cook
07/17/2021, 3:20 AMGarret Cook
07/17/2021, 3:20 AMKevin Kho
Kevin Kho