https://prefect.io logo
j

Jacqueline Riley Garrahan

02/22/2022, 8:05 PM
Is there an alternative/direct way to get all flow runs via flow id besides:
Copy code
runs = FlowRunView._query_for_flow_run(where={"flow_id": {"_eq": id}})
k

Kevin Kho

02/22/2022, 8:08 PM
You can use the Prefect Client and call
client,graphql()
with:
Copy code
query {
	flow (where: {id: {_eq: "64c1984a-615f-4d26-b3ea-dfafceb14f6e"}}){
    id
    flow_runs{
      name
      id
    }
  }
}
4 Views