https://prefect.io logo
Title
n

Nathan Walker

07/23/2021, 8:00 PM
Ohhhh, I did a bad and I need some help. What I did: I created a Flow that creates other Flows and haven't implemented the "don't do this infinitely" part yet, so it grew and grew and now I have a few dozen Flows in "Running" and "Scheduled" statuses. I took my Agent offline, so it's not creating new Flows any more, but I need to cancel all the Flows. Going through each one and clicking "Cancel" in the UI will take quite some time. What I need: Some GraphQL query to cancel all Running and Scheduled Flows. I can query for them and I can call the mutation to cancel them, but I don't know how to have GraphQL iterate through each returned id and run a mutation on it.
k

Kevin Kho

07/23/2021, 8:02 PM
Hey @Nathan Walker, do you have the global cancel here?
🎯 3
n

Nathan Walker

07/23/2021, 8:04 PM
You're a lifesaver!!!
👍 2