Hello, it seems the button to “Cancel” a flowrun from the prefect UI is gone. If I refresh the page a bunch of times it will eventually show up. When I click it I see the error “Failed to cancel flow”. If I try to pause the flow I get “Failed to pause flow”. Any idea on whats wrong?
j
Jenny
05/03/2023, 5:46 PM
Hi @Joshua Gitter - can you give any more information about your flow runs? I don't see any issue in my workspace so wonder if there's something specific there. Can you confirm that you have a deployment connected to the run etc?
j
Joshua Gitter
05/03/2023, 5:49 PM
Generally this is what I see. After refreshing 10+ times I finally get the cancel button to come back
Once I click it, it fails to cancel
j
Jenny
05/03/2023, 6:36 PM
Ah - If I read that correctly, brilliant-lion is a sub flow run. Currently the UI isn't set up to handle cancellation of sub flow runs. There's a similar question here which you can follow to see if we can improve that experience in the future.
j
Joshua Gitter
05/03/2023, 8:53 PM
yes it is a sub flow run. It crashed, returned an error and is still stuck running. how do I kill it?
j
Jenny
05/03/2023, 9:18 PM
Too give more info, we only offer cancellation of runs directly created by a deployment, because cancellation is implemented by killing the flow run's infrastructure.
How to kill it depends on your use case and set up but you should be able to delete the run.
j
Joshua Gitter
05/03/2023, 9:19 PM
Delete run will cancel the run as well?
j
Jenny
05/04/2023, 3:38 PM
Sorry for the imperfect answer but it depends on your set up and what you mean by "cancel". It will remove it from the UI etc but we can't guarantee cancellation unless we can kill a run's infrastructure and we can only be certain we have that for runs directly created by a deployment.