https://prefect.io logo
Title
v

Vadym Dytyniak

04/06/2023, 8:09 AM
Hey. Does Prefect 2 support on cancel flow handler?
👀 1
b

Bianca Hoch

04/06/2023, 5:07 PM
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

Vadym Dytyniak

04/07/2023, 7:32 AM
I have to shutdown the cluster created in the flow.