Hi! How to make an alert when a process gets "canc...
# prefect-ui
м
Hi! How to make an alert when a process gets "cancelling" status?
k
You can find this in the Automations docs. Only available on Cloud
м
Is it possible to intercept this status using a state handler?
k
No because cancellation doesnt trigger state handlers. Someone said
Copy code
def myhandler(...):
    if isinstance(new_state, Cancelled):
        ....
worked but I personally doubt it. You can try though
a
a bit late with this answer but this topic dives deeper into that https://discourse.prefect.io/t/is-it-possible-to-take-action-on-flow-run-cancellation/141
🙌 1