Hi Prefect gurus. I’ve been using tasks hooks to send notifications to slack on completion or failure. However, is there any way to run the hook on any state change (not only completion or failure). As I want to update the slack notification whenever there’s a state change to a task. E.g. when the task starts running
k
Kevin Grismore
01/12/2024, 9:59 PM
my first suggestion would be to call a notify function at the beginning of each task, but it sounds like you're looking for something generic that can be applied to the decorator like the other state change hooks
s
Shane Breeze
01/14/2024, 6:15 PM
Yes, a more general state change hook (which runs on any state change) would be handy
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.