https://prefect.io logo
Title
j

jack

02/27/2023, 4:28 PM
In v2 what are you using in place of state handlers? I would like to build a consistent way to send a customized slack notification when any task in a flow fails.
r

Ryan Peden

02/27/2023, 4:50 PM
We just added success and failure hooks for flows and tasks: https://github.com/PrefectHQ/prefect/blob/main/RELEASE-NOTES.md#release-283. It sounds like the task failure hook would be useful for you here.
🙌 1