Is there a way to extract the number of remaining tasks in a flow from something like the
prefect.client.client.FlowRunInfoResult
that's returned by
client.get_flow_run_info()
?
Alex Furrier
08/23/2021, 10:45 PM
It seems like I can get a number of top level tasks using
client.get_flow_run_info().task_runs
but not sure if there is a way to count children tasks.
k
Kevin Kho
08/23/2021, 10:53 PM
I think you might need to use the graphQL API to count the number of tasks in that flow run with a SCHEDULED state. What are you trying to do? Maybe there is an easier way?
Kevin Kho
08/24/2021, 12:46 AM
Actually it should be the Pending state for this one
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.