1fanwang commented on code in PR #73816: URL: https://github.com/apache/airflow/pull/73816#discussion_r4760556398
########## airflow-core/docs/core-concepts/tasks.rst: ########## @@ -190,6 +190,31 @@ If you want to control your task's state from within custom Task/Operator code, These can be useful if your code has extra knowledge about its environment and wants to fail/skip faster - e.g., skipping when it knows there's no data available, or fast-failing when it detects its API key is invalid (as that will not be fixed by a retry). +Failure causes +-------------- + +Airflow reports a failure category when the worker or executor can establish the cause: +``infra``, ``application``, ``timeout``, or ``manual``. Otherwise the category remains unset. +Failure listeners and scheduler logs can also receive a short producer-owned reason, +such as Kubernetes ``PreemptionByScheduler``. Review Comment: > scope the docs to what ships here Done in https://github.com/apache/airflow/commit/0d62ec2c87ff6ee6587d8be066f25c03083c8a3d. The core docs now describe what the SDK, public API and custom executors report; the Kubernetes examples stay with the adapter. -- 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]
