on_failure#
The on_failure
handler is called when a task raises an exception. The exception object is passed to the handler.
Definition#
1 2 3 4 5 |
|
Possible use cases include:
- Send a log message
- Create a metrics collector
- Clean up the task's traces
- Call
retry
/requeue
to rerun the same task