1fanwang commented on code in PR #73816:
URL: https://github.com/apache/airflow/pull/73816#discussion_r4760571464


##########
task-sdk/src/airflow/sdk/execution_time/task_runner.py:
##########
@@ -2005,6 +2006,12 @@ def _terminal_failure(ti: RuntimeTaskInstance) -> 
TaskState:
     )
 
 
+def _get_task_failure_kind(error: BaseException | None) -> TaskFailureKind | 
None:
+    if error is None or isinstance(error, AirflowTaskTerminated):
+        return None
+    return TaskFailureKind.TIMEOUT if isinstance(error, AirflowTaskTimeout) 
else TaskFailureKind.APPLICATION

Review Comment:
   > leave errors raised by the Airflow runtime itself
   
   Done in 
https://github.com/apache/airflow/commit/0d62ec2c87ff6ee6587d8be066f25c03083c8a3d.
 An XCom write that gets HTTP 503 stays unclassified; an exception from task 
code still reports application.



-- 
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