Skip to content

Commit 8bee3fb

Browse files
authored
Fix config templates type (apache#50792)
1 parent cba268d commit 8bee3fb

File tree

1 file changed

+36
-36
lines changed
  • airflow-core/src/airflow/config_templates

1 file changed

+36
-36
lines changed

airflow-core/src/airflow/config_templates/config.yml

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ core:
116116
schedulers in your cluster, is the maximum number of task instances with the running
117117
state in the metadata database. The value must be larger or equal 1.
118118
version_added: ~
119-
type: string
119+
type: integer
120120
example: ~
121121
default: "32"
122122
max_active_tasks_per_dag:
@@ -129,7 +129,7 @@ core:
129129
An example scenario when this would be useful is when you want to stop a new dag with an early
130130
start date from stealing all the executor slots in a cluster.
131131
version_added: 2.2.0
132-
type: string
132+
type: integer
133133
example: ~
134134
default: "16"
135135
dags_are_paused_at_creation:
@@ -145,7 +145,7 @@ core:
145145
if it reaches the limit. This is configurable at the DAG level with ``max_active_runs``,
146146
which is defaulted as ``[core] max_active_runs_per_dag``.
147147
version_added: ~
148-
type: string
148+
type: integer
149149
example: ~
150150
default: "16"
151151
max_consecutive_failed_dag_runs_per_dag:
@@ -156,7 +156,7 @@ core:
156156
If not specified, then the value is considered as 0,
157157
meaning that the dags are never paused out by default.
158158
version_added: 2.9.0
159-
type: string
159+
type: integer
160160
example: ~
161161
default: "0"
162162
mp_start_method:
@@ -274,7 +274,7 @@ core:
274274
When a task is killed forcefully, this is the amount of time in seconds that
275275
it has to cleanup after it is sent a SIGTERM, before it is SIGKILLED
276276
version_added: ~
277-
type: string
277+
type: integer
278278
example: ~
279279
default: "60"
280280
dag_run_conf_overrides_params:
@@ -307,7 +307,7 @@ core:
307307
description: |
308308
The number of retries each task is going to have by default. Can be overridden at dag or task level.
309309
version_added: 1.10.6
310-
type: string
310+
type: integer
311311
example: ~
312312
default: "0"
313313
default_task_retry_delay:
@@ -354,7 +354,7 @@ core:
354354
description: |
355355
Updating serialized DAG can not be faster than a minimum interval to reduce database write rate.
356356
version_added: 1.10.7
357-
type: string
357+
type: integer
358358
example: ~
359359
default: "30"
360360
compress_serialized_dags:
@@ -365,15 +365,15 @@ core:
365365
366366
This will disable the DAG dependencies view
367367
version_added: 2.3.0
368-
type: string
368+
type: boolean
369369
example: ~
370370
default: "False"
371371
min_serialized_dag_fetch_interval:
372372
description: |
373373
Fetching serialized DAG can not be faster than a minimum interval to reduce database
374374
read rate. This config controls when your DAGs are updated in the Webserver
375375
version_added: 1.10.12
376-
type: string
376+
type: integer
377377
example: ~
378378
default: "10"
379379
max_num_rendered_ti_fields_per_task:
@@ -437,7 +437,7 @@ core:
437437
deployment where the ``default_pool`` is already created. For existing deployments, users can
438438
change the number of slots using Webserver, API or the CLI
439439
version_added: 2.2.0
440-
type: string
440+
type: integer
441441
example: ~
442442
default: "128"
443443
max_map_length:
@@ -572,7 +572,7 @@ database:
572572
The SQLAlchemy pool size is the maximum number of database connections
573573
in the pool. 0 indicates no limit.
574574
version_added: 2.3.0
575-
type: string
575+
type: integer
576576
example: ~
577577
default: "5"
578578
sql_alchemy_max_overflow:
@@ -587,7 +587,7 @@ database:
587587
max_overflow can be set to ``-1`` to indicate no overflow limit;
588588
no limit will be placed on the total number of concurrent connections. Defaults to ``10``.
589589
version_added: 2.3.0
590-
type: string
590+
type: integer
591591
example: ~
592592
default: "10"
593593
sql_alchemy_pool_recycle:
@@ -597,7 +597,7 @@ database:
597597
not apply to sqlite. If the number of DB connections is ever exceeded,
598598
a lower config value will allow the system to recover faster.
599599
version_added: 2.3.0
600-
type: string
600+
type: integer
601601
example: ~
602602
default: "1800"
603603
sql_alchemy_pool_pre_ping:
@@ -608,7 +608,7 @@ database:
608608
<https://docs.sqlalchemy.org/en/14/core/pooling.html#disconnect-handling-pessimistic>`__
609609
for more details.
610610
version_added: 2.3.0
611-
type: string
611+
type: boolean
612612
example: ~
613613
default: "True"
614614
sql_alchemy_schema:
@@ -1029,7 +1029,7 @@ metrics:
10291029
description: |
10301030
Enables sending metrics to StatsD.
10311031
version_added: 2.0.0
1032-
type: string
1032+
type: boolean
10331033
example: ~
10341034
default: "False"
10351035
statsd_host:
@@ -1043,14 +1043,14 @@ metrics:
10431043
description: |
10441044
Enables the statsd host to be resolved into IPv6 address
10451045
version_added: 3.0.0
1046-
type: string
1046+
type: boolean
10471047
example: ~
10481048
default: "False"
10491049
statsd_port:
10501050
description: |
10511051
Specifies the port on which the StatsD daemon (or server) is listening to
10521052
version_added: 2.0.0
1053-
type: string
1053+
type: integer
10541054
example: ~
10551055
default: "8125"
10561056
statsd_prefix:
@@ -1078,7 +1078,7 @@ metrics:
10781078
description: |
10791079
To enable datadog integration to send airflow metrics.
10801080
version_added: 2.0.0
1081-
type: string
1081+
type: boolean
10821082
example: ~
10831083
default: "False"
10841084
statsd_datadog_tags:
@@ -1126,7 +1126,7 @@ metrics:
11261126
description: |
11271127
Enables sending metrics to OpenTelemetry.
11281128
version_added: 2.6.0
1129-
type: string
1129+
type: boolean
11301130
example: ~
11311131
default: "False"
11321132
otel_host:
@@ -1141,7 +1141,7 @@ metrics:
11411141
description: |
11421142
Specifies the port of the OpenTelemetry Collector that is listening to.
11431143
version_added: 2.6.0
1144-
type: string
1144+
type: integer
11451145
example: ~
11461146
default: "8889"
11471147
otel_prefix:
@@ -1163,7 +1163,7 @@ metrics:
11631163
description: |
11641164
If ``True``, all metrics are also emitted to the console. Defaults to ``False``.
11651165
version_added: 2.7.0
1166-
type: string
1166+
type: boolean
11671167
example: ~
11681168
default: "False"
11691169
otel_service:
@@ -1180,7 +1180,7 @@ metrics:
11801180
you need to configure the SSL certificate and key within the OpenTelemetry collector's
11811181
``config.yml`` file.
11821182
version_added: 2.7.0
1183-
type: string
1183+
type: boolean
11841184
example: ~
11851185
default: "False"
11861186
traces:
@@ -1191,7 +1191,7 @@ traces:
11911191
description: |
11921192
Enables sending traces to OpenTelemetry.
11931193
version_added: 2.10.0
1194-
type: string
1194+
type: boolean
11951195
example: ~
11961196
default: "False"
11971197
otel_host:
@@ -1206,7 +1206,7 @@ traces:
12061206
description: |
12071207
Specifies the port of the OpenTelemetry Collector that is listening to.
12081208
version_added: 2.10.0
1209-
type: string
1209+
type: integer
12101210
example: ~
12111211
default: "8889"
12121212
otel_service:
@@ -1220,7 +1220,7 @@ traces:
12201220
description: |
12211221
If True, all traces are also emitted to the console. Defaults to False.
12221222
version_added: 2.10.0
1223-
type: string
1223+
type: boolean
12241224
example: ~
12251225
default: "False"
12261226
otel_ssl_active:
@@ -1230,7 +1230,7 @@ traces:
12301230
you need to configure the SSL certificate and key within the OpenTelemetry collector's
12311231
config.yml file.
12321232
version_added: 2.10.0
1233-
type: string
1233+
type: boolean
12341234
example: ~
12351235
default: "False"
12361236
secrets:
@@ -1348,14 +1348,14 @@ api:
13481348
description: |
13491349
Number of workers to run on the API server
13501350
version_added: ~
1351-
type: string
1351+
type: integer
13521352
example: ~
13531353
default: "4"
13541354
worker_timeout:
13551355
description: |
13561356
Number of seconds the API server waits before timing out on a worker
13571357
version_added: ~
1358-
type: string
1358+
type: integer
13591359
example: ~
13601360
default: "120"
13611361
access_logfile:
@@ -1453,14 +1453,14 @@ api:
14531453
By default, the webserver shows paused DAGs. Flip this to hide paused
14541454
DAGs by default
14551455
version_added: ~
1456-
type: string
1456+
type: boolean
14571457
example: ~
14581458
default: "False"
14591459
page_size:
14601460
description: |
14611461
Consistent page size across all listing views in the UI
14621462
version_added: ~
1463-
type: string
1463+
type: integer
14641464
example: ~
14651465
default: "50"
14661466
default_wrap:
@@ -1863,21 +1863,21 @@ smtp:
18631863
description: |
18641864
Determines whether to use the STARTTLS command when connecting to the SMTP server.
18651865
version_added: ~
1866-
type: string
1866+
type: boolean
18671867
example: ~
18681868
default: "True"
18691869
smtp_ssl:
18701870
description: |
18711871
Determines whether to use an SSL connection when talking to the SMTP server.
18721872
version_added: ~
1873-
type: string
1873+
type: boolean
18741874
example: ~
18751875
default: "False"
18761876
smtp_port:
18771877
description: |
18781878
Defines the port number on which Airflow connects to the SMTP server to send email notifications.
18791879
version_added: ~
1880-
type: string
1880+
type: integer
18811881
example: ~
18821882
default: "25"
18831883
smtp_mail_from:
@@ -1914,7 +1914,7 @@ sentry:
19141914
sentry_on:
19151915
description: Enable error reporting to Sentry
19161916
version_added: 2.0.0
1917-
type: string
1917+
type: boolean
19181918
example: ~
19191919
default: "false"
19201920
sentry_dsn:
@@ -2225,7 +2225,7 @@ triggerer:
22252225
description: |
22262226
How many triggers a single Triggerer will run at once, by default.
22272227
version_added: 2.2.0
2228-
type: string
2228+
type: integer
22292229
example: ~
22302230
default: "1000"
22312231
job_heartbeat_sec:
@@ -2420,7 +2420,7 @@ dag_processor:
24202420
description: |
24212421
How long before timing out a DagFileProcessor, which processes a dag file
24222422
version_added: ~
2423-
type: string
2423+
type: integer
24242424
example: ~
24252425
default: "50"
24262426
print_stats_interval:

0 commit comments

Comments
 (0)