Is it possible to cancel flow runs from the 2.0 UI...
# prefect-ui
a
Is it possible to cancel flow runs from the 2.0 UI?
đź‘Ť 1
âś… 1
m
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
Thanks @Matt Conger. Any plans of adding this back to the UI. I found it quite useful in 1.0
đź‘Ť 1
m
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
Gotcha, thanks @Matt Conger