jstern commented on a change in pull request #7133:
URL: https://github.com/apache/airflow/pull/7133#discussion_r426167908



##########
File path: docs/concepts.rst
##########
@@ -1216,6 +1216,49 @@ template string:
 See `Jinja documentation 
<https://jinja.palletsprojects.com/en/master/api/#jinja2.Environment>`_
 to find all available options.
 
+.. _exceptions:
+
+Exceptions
+==========
+
+Airflow defines a number of exceptions; most of these are used internally, but 
a few
+are relevant to authors of custom operators or python callables called from 
``PythonOperator``
+tasks. Normally any exception raised from an ``execute`` method or python 
callable will either
+cause a task instance to fail if it is not configured to retry or has reached 
its limit on
+retry attempts, or to be marked as "up for retry". A few exceptions can be 
used when different
+behavior is desired:
+
+* ``AirflowSkipException`` can be raised to set the state of the current task 
instance to "skipped"
+* ``AirflowFailException`` can be raised to set the state of the current task 
to "failed" regardless
+  of whether there are any retry attempts remaining.
+
+This example illustrates some possibilities
+
+.. code:: python
+

Review comment:
       done :)




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

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


Reply via email to