Hey. Does Prefect 2 support on cancel flow handler...
# ask-community
v
Hey. Does Prefect 2 support on cancel flow handler?
👀 1
b
Hey Vadym, my first thought would be to setup an automation which kicks off an event in response to a flow entering a
Cancelled
or
Cancelling
state.
What would you like execute in response to a flow being cancelled?
v
I have to shutdown the cluster created in the flow.