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

pierrejeambrun pushed a commit to branch v3-0-test
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/v3-0-test by this push:
     new 1ff10909918 Fix config templates type (#50792) (#51147)
1ff10909918 is described below

commit 1ff10909918a1f14ce79f0def90f905510dc51ed
Author: Pierre Jeambrun <[email protected]>
AuthorDate: Wed May 28 15:01:58 2025 +0200

    Fix config templates type (#50792) (#51147)
    
    (cherry picked from commit 8bee3fb6ac9a9289ac21606b39533ba6e84976f2)
    
    Co-authored-by: Guan Ming(Wesley) Chiu 
<[email protected]>
---
 .../src/airflow/config_templates/config.yml        | 72 +++++++++++-----------
 1 file changed, 36 insertions(+), 36 deletions(-)

diff --git a/airflow-core/src/airflow/config_templates/config.yml 
b/airflow-core/src/airflow/config_templates/config.yml
index f597843aa3c..948299dec0d 100644
--- a/airflow-core/src/airflow/config_templates/config.yml
+++ b/airflow-core/src/airflow/config_templates/config.yml
@@ -116,7 +116,7 @@ core:
         schedulers in your cluster, is the maximum number of task instances 
with the running
         state in the metadata database. The value must be larger or equal 1.
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "32"
     max_active_tasks_per_dag:
@@ -129,7 +129,7 @@ core:
         An example scenario when this would be useful is when you want to stop 
a new dag with an early
         start date from stealing all the executor slots in a cluster.
       version_added: 2.2.0
-      type: string
+      type: integer
       example: ~
       default: "16"
     dags_are_paused_at_creation:
@@ -145,7 +145,7 @@ core:
         if it reaches the limit. This is configurable at the DAG level with 
``max_active_runs``,
         which is defaulted as ``[core] max_active_runs_per_dag``.
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "16"
     max_consecutive_failed_dag_runs_per_dag:
@@ -156,7 +156,7 @@ core:
         If not specified, then the value is considered as 0,
         meaning that the dags are never paused out by default.
       version_added: 2.9.0
-      type: string
+      type: integer
       example: ~
       default: "0"
     mp_start_method:
@@ -281,7 +281,7 @@ core:
         When a task is killed forcefully, this is the amount of time in 
seconds that
         it has to cleanup after it is sent a SIGTERM, before it is SIGKILLED
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "60"
     dag_run_conf_overrides_params:
@@ -314,7 +314,7 @@ core:
       description: |
         The number of retries each task is going to have by default. Can be 
overridden at dag or task level.
       version_added: 1.10.6
-      type: string
+      type: integer
       example: ~
       default: "0"
     default_task_retry_delay:
@@ -361,7 +361,7 @@ core:
       description: |
         Updating serialized DAG can not be faster than a minimum interval to 
reduce database write rate.
       version_added: 1.10.7
-      type: string
+      type: integer
       example: ~
       default: "30"
     compress_serialized_dags:
@@ -372,7 +372,7 @@ core:
 
             This will disable the DAG dependencies view
       version_added: 2.3.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     min_serialized_dag_fetch_interval:
@@ -380,7 +380,7 @@ core:
         Fetching serialized DAG can not be faster than a minimum interval to 
reduce database
         read rate. This config controls when your DAGs are updated in the 
Webserver
       version_added: 1.10.12
-      type: string
+      type: integer
       example: ~
       default: "10"
     max_num_rendered_ti_fields_per_task:
@@ -444,7 +444,7 @@ core:
         deployment where the ``default_pool`` is already created. For existing 
deployments, users can
         change the number of slots using Webserver, API or the CLI
       version_added: 2.2.0
-      type: string
+      type: integer
       example: ~
       default: "128"
     max_map_length:
@@ -606,7 +606,7 @@ database:
         The SQLAlchemy pool size is the maximum number of database connections
         in the pool. 0 indicates no limit.
       version_added: 2.3.0
-      type: string
+      type: integer
       example: ~
       default: "5"
     sql_alchemy_max_overflow:
@@ -621,7 +621,7 @@ database:
         max_overflow can be set to ``-1`` to indicate no overflow limit;
         no limit will be placed on the total number of concurrent connections. 
Defaults to ``10``.
       version_added: 2.3.0
-      type: string
+      type: integer
       example: ~
       default: "10"
     sql_alchemy_pool_recycle:
@@ -631,7 +631,7 @@ database:
         not apply to sqlite. If the number of DB connections is ever exceeded,
         a lower config value will allow the system to recover faster.
       version_added: 2.3.0
-      type: string
+      type: integer
       example: ~
       default: "1800"
     sql_alchemy_pool_pre_ping:
@@ -642,7 +642,7 @@ database:
         
<https://docs.sqlalchemy.org/en/14/core/pooling.html#disconnect-handling-pessimistic>`__
         for more details.
       version_added: 2.3.0
-      type: string
+      type: boolean
       example: ~
       default: "True"
     sql_alchemy_schema:
@@ -1063,7 +1063,7 @@ metrics:
       description: |
         Enables sending metrics to StatsD.
       version_added: 2.0.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     statsd_host:
@@ -1077,14 +1077,14 @@ metrics:
       description: |
         Enables the statsd host to be resolved into IPv6 address
       version_added: 3.0.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     statsd_port:
       description: |
         Specifies the port on which the StatsD daemon (or server) is listening 
to
       version_added: 2.0.0
-      type: string
+      type: integer
       example: ~
       default: "8125"
     statsd_prefix:
@@ -1112,7 +1112,7 @@ metrics:
       description: |
         To enable datadog integration to send airflow metrics.
       version_added: 2.0.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     statsd_datadog_tags:
@@ -1160,7 +1160,7 @@ metrics:
       description: |
         Enables sending metrics to OpenTelemetry.
       version_added: 2.6.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     otel_host:
@@ -1175,7 +1175,7 @@ metrics:
       description: |
         Specifies the port of the OpenTelemetry Collector that is listening to.
       version_added: 2.6.0
-      type: string
+      type: integer
       example: ~
       default: "8889"
     otel_prefix:
@@ -1197,7 +1197,7 @@ metrics:
       description: |
         If ``True``, all metrics are also emitted to the console. Defaults to 
``False``.
       version_added: 2.7.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     otel_service:
@@ -1214,7 +1214,7 @@ metrics:
         you need to configure the SSL certificate and key within the 
OpenTelemetry collector's
         ``config.yml`` file.
       version_added: 2.7.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
 traces:
@@ -1225,7 +1225,7 @@ traces:
       description: |
         Enables sending traces to OpenTelemetry.
       version_added: 2.10.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     otel_host:
@@ -1240,7 +1240,7 @@ traces:
       description: |
         Specifies the port of the OpenTelemetry Collector that is listening to.
       version_added: 2.10.0
-      type: string
+      type: integer
       example: ~
       default: "8889"
     otel_service:
@@ -1254,7 +1254,7 @@ traces:
       description: |
         If True, all traces are also emitted to the console. Defaults to False.
       version_added: 2.10.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
     otel_ssl_active:
@@ -1264,7 +1264,7 @@ traces:
         you need to configure the SSL certificate and key within the 
OpenTelemetry collector's
         config.yml file.
       version_added: 2.10.0
-      type: string
+      type: boolean
       example: ~
       default: "False"
 secrets:
@@ -1375,14 +1375,14 @@ api:
       description: |
         Number of workers to run on the API server
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "4"
     worker_timeout:
       description: |
         Number of seconds the API server waits before timing out on a worker
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "120"
     access_logfile:
@@ -1768,14 +1768,14 @@ webserver:
         By default, the webserver shows paused DAGs. Flip this to hide paused
         DAGs by default
       version_added: ~
-      type: string
+      type: boolean
       example: ~
       default: "False"
     page_size:
       description: |
         Consistent page size across all listing views in the UI
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "50"
     default_wrap:
@@ -1932,21 +1932,21 @@ smtp:
       description: |
         Determines whether to use the STARTTLS command when connecting to the 
SMTP server.
       version_added: ~
-      type: string
+      type: boolean
       example: ~
       default: "True"
     smtp_ssl:
       description: |
         Determines whether to use an SSL connection when talking to the SMTP 
server.
       version_added: ~
-      type: string
+      type: boolean
       example: ~
       default: "False"
     smtp_port:
       description: |
         Defines the port number on which Airflow connects to the SMTP server 
to send email notifications.
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "25"
     smtp_mail_from:
@@ -1983,7 +1983,7 @@ sentry:
     sentry_on:
       description: Enable error reporting to Sentry
       version_added: 2.0.0
-      type: string
+      type: boolean
       example: ~
       default: "false"
     sentry_dsn:
@@ -2294,7 +2294,7 @@ triggerer:
       description: |
         How many triggers a single Triggerer will run at once, by default.
       version_added: 2.2.0
-      type: string
+      type: integer
       example: ~
       default: "1000"
     job_heartbeat_sec:
@@ -2489,7 +2489,7 @@ dag_processor:
       description: |
         How long before timing out a DagFileProcessor, which processes a dag 
file
       version_added: ~
-      type: string
+      type: integer
       example: ~
       default: "50"
     print_stats_interval:

Reply via email to