dasarijashwanth opened a new pull request, #77661:
URL: https://github.com/apache/airflow/pull/77661

   Closes #32246
   
   Retryable task failures currently log the exception at error level on every 
attempt, which makes log monitoring noisy: an error appears even when the task 
is about to be retried and may still succeed.
   
   This change logs the exception at warning level (with the traceback) while a 
retry or reschedule remains, and keeps error level for the final attempt and 
for terminal failures (`AirflowFailException`, `AirflowTaskTerminated` are 
unchanged).
   
   The retry decision is made by `_handle_current_task_failed`, so the two 
retryable paths in `_run_task_and_map_outcome` now compute the outcome first 
and then log via the new `_log_task_failure` helper, which picks the level from 
the resulting state (`UP_FOR_RETRY` / `UP_FOR_RESCHEDULE` -> warning, otherwise 
error).
   
   Happy to add a newsfragment and tests in the form maintainers prefer.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to