Skip to content

Commit

Permalink
Note how DAG policy works with default_args (#24804)
Browse files Browse the repository at this point in the history
Co-authored-by: Tzu-ping Chung <uranusjr@gmail.com>
(cherry picked from commit 298be50)
  • Loading branch information
mariotaddeucci authored and ephraimbuddy committed Aug 15, 2022
1 parent 03b2fad commit 98baf60
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/apache-airflow/concepts/cluster-policies.rst
Expand Up @@ -54,6 +54,10 @@ This policy checks if each DAG has at least one tag defined:

To avoid import cycles, if you use ``DAG`` in type annotations in your cluster policy, be sure to import from ``airflow.models`` and not from ``airflow``.

.. note::

DAG policies are applied after the DAG has been completely loaded, so overriding the ``default_args`` parameter has no effect. If you want to override the default operator settings, use task policies instead.

Task policies
-------------

Expand Down

0 comments on commit 98baf60

Please sign in to comment.