Adaverse commented on code in PR #32169:
URL: https://github.com/apache/airflow/pull/32169#discussion_r1243165240
##########
docs/apache-airflow/core-concepts/dags.rst:
##########
@@ -484,6 +484,45 @@ You can also combine this with the
:ref:`concepts:depends-on-past` functionality
.. image:: /img/branch_with_trigger.png
+.. _concepts:setup-and-teardown:
+
+Setup and Teardown
+~~~~~~~~~~~~~~~~~~
+
+In data workflows it's common to create resources (such as a compute
resource), use it to do some work, and then tear it down. Airflow provides the
concept of setup and teardown tasks to support this need.
+
+Features of setup and teardown tasks:
+
+ * If you clear a task, its setups and teardowns will be cleared.
+ * By default, teardown tasks are ignored for the purpose of evaluating dag
run state.
+ * A teardown task will run if it's setup was successful, even if its work
tasks failed.
+ * Teardown tasks are ignore when setting dependencies against task groups.
Review Comment:
```suggestion
* Teardown tasks are ignored when setting dependencies against task groups.
```
--
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]