From 98baf6054b0ffb9277508be871363a9362ac4c76 Mon Sep 17 00:00:00 2001 From: Mario Taddeucci Date: Wed, 3 Aug 2022 04:31:25 -0300 Subject: [PATCH] Note how DAG policy works with default_args (#24804) Co-authored-by: Tzu-ping Chung (cherry picked from commit 298be502c35006b7c3f011b676dbb4db0633bc74) --- 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 e1c664660a4d6..8bec4db4c3994 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 -------------