https://prefect.io logo
Title
a

Adam

10/31/2022, 10:30 PM
Is it possible to cancel flow runs from the 2.0 UI?
👍 1
1
m

Matt Conger

10/31/2022, 10:42 PM
Hey @Adam The most effective way of cancelling a flow run would be cancelling the job in the infrastructure. (ex: by killing the process on that machine or the K8s job). This discourse also goes into cancelling a flow run as well. https://discourse.prefect.io/t/i-have-a-flow-run-that-got-stuck-in-a-running-state-how-can-i-cancel-it-from-the-orion-client/800
a

Adam

10/31/2022, 11:21 PM
Thanks @Matt Conger. Any plans of adding this back to the UI. I found it quite useful in 1.0
👍 1
m

Matt Conger

10/31/2022, 11:34 PM
It's definitely something we've been looking into. Cancellation can be tricky because interrupting running code is either not possible or very complicated in Python. Many libraries choose not to allow cancellation of tasks once they’ve started running. Other times, they can perform “soft cancellation” in which the rest of the code moves on but the task continues running in the background. There’s a lot of variance in user expectations for cancellation and we’re still figuring out the best way to meet the majority of our user’s expectations while providing a robust and consistent cancellation method.
a

Adam

11/03/2022, 1:15 PM
Gotcha, thanks @Matt Conger