Skip to content

Commit

Permalink
Updated config.yml for environment variable sql_alchemy_connect_args (#…
Browse files Browse the repository at this point in the history
…36526)

* Update config.yml

* Updated config.yml

added more description

* conf update

* lint check update

* Update config.yml

extra space removed

* Update config.yml

change for pytest
  • Loading branch information
koushik-rout-samsung committed Jan 25, 2024
1 parent 10ad8d9 commit 8fd9fdb
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -592,11 +592,15 @@ database:
description: |
Import path for connect args in SqlAlchemy. Defaults to an empty dict.
This is useful when you want to configure db engine args that SqlAlchemy won't parse
in connection string.
See https://docs.sqlalchemy.org/en/14/core/engines.html#sqlalchemy.create_engine.params.connect_args
in connection string. This can be set by passing a dictionary containing the create engine parameters.
For more details about passing create engine parameters(keepalives variables, timeout etc)
in postgres db connection see
https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#setting-up-a-postgresql-database
e.g connect_args={"timeout":30} can be defined in airflow_local_settings.py and
can be imported as shown below
version_added: 2.3.0
type: string
example: '{"timeout": 30}'
example: 'airflow_local_settings.connect_args'
default: ~
load_default_connections:
description: |
Expand Down

0 comments on commit 8fd9fdb

Please sign in to comment.