You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by je...@apache.org on 2021/07/29 19:37:18 UTC

[airflow] branch main updated: docs: fix inconsistencies in configuration docs (#17317)

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

jedcunningham 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 2020a54  docs: fix inconsistencies in configuration docs (#17317)
2020a54 is described below

commit 2020a544c8208c8c3c9763cf0dbb6b2e1a145727
Author: mgorsk1 <go...@gmail.com>
AuthorDate: Thu Jul 29 21:36:57 2021 +0200

    docs: fix inconsistencies in configuration docs (#17317)
---
 airflow/config_templates/config.yml          | 14 ++++----------
 airflow/config_templates/default_airflow.cfg | 14 ++++----------
 2 files changed, 8 insertions(+), 20 deletions(-)

diff --git a/airflow/config_templates/config.yml b/airflow/config_templates/config.yml
index fd60a7a..c83c1c4 100644
--- a/airflow/config_templates/config.yml
+++ b/airflow/config_templates/config.yml
@@ -1831,36 +1831,30 @@
       default: "True"
     - name: max_dagruns_to_create_per_loop
       description: |
-        Max number of DAGs to create DagRuns for per scheduler loop
-
-        Default: 10
+        Max number of DAGs to create DagRuns for per scheduler loop.
       example: ~
       version_added: 2.0.0
       type: string
-      default: ~
+      default: "10"
       see_also: ":ref:`scheduler:ha:tunables`"
     - name: max_dagruns_per_loop_to_schedule
       description: |
         How many DagRuns should a scheduler examine (and lock) when scheduling
         and queuing tasks.
-
-        Default: 20
       example: ~
       version_added: 2.0.0
       type: string
-      default: ~
+      default: "20"
       see_also: ":ref:`scheduler:ha:tunables`"
     - name: schedule_after_task_execution
       description: |
         Should the Task supervisor process perform a "mini scheduler" to attempt to schedule more tasks of the
         same DAG. Leaving this on will mean tasks in the same DAG execute quicker, but might starve out other
         dags in some circumstances
-
-        Default: True
       example: ~
       version_added: 2.0.0
       type: boolean
-      default: ~
+      default: "True"
     - name: parsing_processes
       description: |
         The scheduler can run multiple processes in parallel to parse dags.
diff --git a/airflow/config_templates/default_airflow.cfg b/airflow/config_templates/default_airflow.cfg
index f3b4589..d558422 100644
--- a/airflow/config_templates/default_airflow.cfg
+++ b/airflow/config_templates/default_airflow.cfg
@@ -917,23 +917,17 @@ max_tis_per_query = 512
 # scheduler at once
 use_row_level_locking = True
 
-# Max number of DAGs to create DagRuns for per scheduler loop
-#
-# Default: 10
-# max_dagruns_to_create_per_loop =
+# Max number of DAGs to create DagRuns for per scheduler loop.
+max_dagruns_to_create_per_loop = 10
 
 # How many DagRuns should a scheduler examine (and lock) when scheduling
 # and queuing tasks.
-#
-# Default: 20
-# max_dagruns_per_loop_to_schedule =
+max_dagruns_per_loop_to_schedule = 20
 
 # Should the Task supervisor process perform a "mini scheduler" to attempt to schedule more tasks of the
 # same DAG. Leaving this on will mean tasks in the same DAG execute quicker, but might starve out other
 # dags in some circumstances
-#
-# Default: True
-# schedule_after_task_execution =
+schedule_after_task_execution = True
 
 # The scheduler can run multiple processes in parallel to parse dags.
 # This defines how many processes will run.