title: Airflow Task failure/retry workflow
body: <p>I have retry logic for tasks and it's not clear how Airflow handles task failures when retries are turned on.</p>
  
  <p>Their <a href="https://airflow.apache.org/code.html?highlight=on_failure_callback" rel="noreferrer">documentation</a> just states that <code>on_failure_callback</code> gets triggered when a task fails, but if that task fails and is also marked for retry does that mean that both the <code>on_failure_callback</code> and <code>on_retry_callback</code> would be called? </p>