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


##########
airflow-core/docs/administration-and-deployment/listeners.rst:
##########
@@ -103,6 +103,19 @@ of a 
:class:`~airflow.sdk.execution_time.task_runner.RuntimeTaskInstance` instan
     :start-after: [START howto_listen_ti_skipped_task]
     :end-before: [END howto_listen_ti_skipped_task]
 
+Failure cause
+"""""""""""""
+
+``on_task_instance_failed`` can receive a 
:class:`~airflow.executors.base_executor.TaskFailureKind`:

Review Comment:
   > comparing against the string values is the supported way.
   
   Done in 
https://github.com/apache/airflow/commit/0d62ec2c87ff6ee6587d8be066f25c03083c8a3d.
 The docs use string comparisons, so worker listeners need no core or private 
SDK enum import.



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