The GitHub Actions job "Tests (AMD)" on 
airflow.git/fix-task-failure-log-severity has failed.
Run started by GitHub user roshanprabu (triggered by potiuk).

Head commit for run:
bb76419b4f83524fc62daf86518486c2117bb6bc / roshanprabu <[email protected]>
Log retried task failures as warnings, not errors

task_runner.py logged every task failure via log.exception (ERROR
level + traceback) even when the task instance was about to be
retried automatically. For DAGs with hundreds of task instances and
transient failures, this pages error-tracking tools (e.g. Sentry) on
every retry rather than only on the terminal failure.

The retry-vs-fail outcome is already computed by
_handle_current_task_failed before the log call, so _log_task_failure
uses that outcome to log at WARNING when the task will retry and only
uses ERROR on the final, non-retried attempt. AirflowFailException,
AirflowSensorTimeout, and AirflowTaskTerminated are unaffected since
those are already documented as never eligible for retry.

Closes: #32246

Report URL: https://github.com/apache/airflow/actions/runs/31203976543

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to