Automatic retry mechanisms for failed tasks
max_retries
and retry_backoff
parameters.
max_retries
to automatically retry failed tasks:
on_error
callbacks to monitor failures without affecting retry behavior:
on_error
handler must accept either no arguments or exactly one Exception argument. The handler runs after each failure but doesn’t prevent retries.