What's the best way to trigger an operator when a task fails? I'd like to be able to specify different tasks or even different branches when a task fails. For example, it would be nice to write to a random db using a hook when one of my tasks fails -- is this currently possible or would the operator api have to be modified?
Ideally, I'd like to be able to trigger any operator on retry or failure instead of just sending a single email.