Hey, is there a way to add a sort of a callback fu...
# prefect-community
f
Hey, is there a way to add a sort of a callback function when a task fails ?
a
if you are asking for Prefect 1.0, this is what triggers are for - you can set a trigger for a specific task downstream of another task to run only on failure
f
ok i'll do it that way
thanks
👍 1
k
This is the use case for state handlers
🙏 1
a
true both state handlers and triggers can be used to do that, good catch 👍