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

eladkal 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 112d4d663e Discovery safe mode toggle comment clarification (#30459)
112d4d663e is described below

commit 112d4d663e89343a4669f6001131581313e7c82b
Author: Andrius Paurys <[email protected]>
AuthorDate: Tue Apr 4 22:56:20 2023 +0300

    Discovery safe mode toggle comment clarification (#30459)
---
 airflow/config_templates/config.yml          | 2 +-
 airflow/config_templates/default_airflow.cfg | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/airflow/config_templates/config.yml 
b/airflow/config_templates/config.yml
index f06ab2c0cf..c4ce03e586 100644
--- a/airflow/config_templates/config.yml
+++ b/airflow/config_templates/config.yml
@@ -259,7 +259,7 @@ core:
       default: "True"
     dag_discovery_safe_mode:
       description: |
-        When discovering DAGs, ignore any files that don't contain the strings 
``DAG`` and ``airflow``.
+        If enabled, Airflow will only scan files containing both ``DAG`` and 
``airflow`` (case-insensitive).
       version_added: 1.10.3
       type: string
       example: ~
diff --git a/airflow/config_templates/default_airflow.cfg 
b/airflow/config_templates/default_airflow.cfg
index 14ef880aa1..22409997c6 100644
--- a/airflow/config_templates/default_airflow.cfg
+++ b/airflow/config_templates/default_airflow.cfg
@@ -155,7 +155,7 @@ killed_task_cleanup_time = 60
 # ``airflow dags trigger -c``, the key-value pairs will override the existing 
ones in params.
 dag_run_conf_overrides_params = True
 
-# When discovering DAGs, ignore any files that don't contain the strings 
``DAG`` and ``airflow``.
+# If enabled, Airflow will only scan files containing both ``DAG`` and 
``airflow`` (case-insensitive).
 dag_discovery_safe_mode = True
 
 # The pattern syntax used in the ".airflowignore" files in the DAG 
directories. Valid values are

Reply via email to