https://prefect.io logo
p

Prasanth Kothuri

01/20/2022, 4:53 PM
what is the graphql query to get list of flow run ids for a given flow name ?
k

Kevin Kho

01/20/2022, 5:02 PM
Something like this:
Copy code
query {
	flow (where: {name: {_eq: "distributed"}}){
		id
    name
    project {
      name
    }
    flow_runs{
      id
      name
    }
  }
}
p

Prasanth Kothuri

01/20/2022, 5:07 PM
awesome, works perfectly 🙂 , I needed to get list of flow run and delete older ones
Copy code
mutation {
  delete_flow_run(input: {flow_run_id: "9b6601b8-e488-44d2-b36f-e5f42ae6e8d1"}) {
    success
    error
  }
}
6 Views