Garret Cook
07/17/2021, 2:19 AMKevin Kho
07/17/2021, 3:03 AMGarret Cook
07/17/2021, 3:03 AMKevin Kho
07/17/2021, 3:11 AMFlowRunView.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 AMKevin Kho
07/17/2021, 3:17 AMGarret Cook
07/17/2021, 3:17 AMKevin Kho
07/17/2021, 3:19 AMGarret Cook
07/17/2021, 3:20 AMKevin Kho
07/17/2021, 3:22 AM