dasarijashwanth commented on PR #77661: URL: https://github.com/apache/airflow/pull/77661#issuecomment-7224110785
@matthew930823 thanks for running the tests. Pushed a fix: - `::group::Post Execute` is opened before `_handle_current_task_failed` again in both retryable paths, so the `::endgroup::` + "Retry policy decision" ordering is restored. - The failure log now happens inside `_handle_current_task_failed` once the state is decided, and the retry policy decision is logged after it, so the traceback comes before the decision line. - Updated `test_task_runner_not_fail_on_failed_callback[retry]` to expect the warning instead of `log.exception`. - Yes on the last point: `_handle_handler_failure` now goes through the same state-based logging (terminal exceptions still log as errors), and the SystemExit branch logs "Task exited" as a warning when a retry remains. The TriggerDagRun synthesized-failure path opts out via `log_failure=False` since it already logs its own error line. Happy to adjust if you'd rather keep the decision logging inside `_evaluate_retry_policy`. -- 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]
