https://prefect.io logo
Title
f

Florian Guily

05/17/2022, 12:56 PM
Hey, is there a way to add a sort of a callback function when a task fails ?
a

Anna Geller

05/17/2022, 1:04 PM
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

Florian Guily

05/17/2022, 1:05 PM
ok i'll do it that way
thanks
👍 1
k

Kevin Kho

05/17/2022, 1:34 PM
This is the use case for state handlers
🙏 1
a

Anna Geller

05/17/2022, 1:40 PM
true both state handlers and triggers can be used to do that, good catch 👍