This is an automated email from the ASF dual-hosted git repository.

uranusjr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 298be502c3 Note how DAG policy works with default_args (#24804)
298be502c3 is described below

commit 298be502c35006b7c3f011b676dbb4db0633bc74
Author: Mario Taddeucci <[email protected]>
AuthorDate: Wed Aug 3 04:31:25 2022 -0300

    Note how DAG policy works with default_args (#24804)
    
    Co-authored-by: Tzu-ping Chung <[email protected]>
---
 docs/apache-airflow/concepts/cluster-policies.rst | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/docs/apache-airflow/concepts/cluster-policies.rst 
b/docs/apache-airflow/concepts/cluster-policies.rst
index e1c664660a..8bec4db4c3 100644
--- a/docs/apache-airflow/concepts/cluster-policies.rst
+++ b/docs/apache-airflow/concepts/cluster-policies.rst
@@ -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
 -------------
 

Reply via email to