Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated config.yml for environment variable sql_alchemy_connect_args #36526

Merged
merged 11 commits into from
Jan 25, 2024
8 changes: 5 additions & 3 deletions airflow/config_templates/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -583,11 +583,13 @@
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

Check failure on line 587 in airflow/config_templates/config.yml

View workflow job for this annotation

GitHub Actions / Static checks

587:111 [line-length] line too long (125 > 110 characters)
see https://airflow.apache.org/docs/apache-airflow/stable/howto/set-up-database.html#setting-up-a-postgresql-database

Check failure on line 588 in airflow/config_templates/config.yml

View workflow job for this annotation

GitHub Actions / Static checks

588:111 [line-length] line too long (125 > 110 characters)
Example: connect_args={"timeout":30} can be defined in airflow_local_settings.py and can be imported as shown below

Check failure on line 589 in airflow/config_templates/config.yml

View workflow job for this annotation

GitHub Actions / Static checks

589:111 [line-length] line too long (123 > 110 characters)
version_added: 2.3.0
type: string
example: '{"timeout": 30}'
example: 'airflow.config_templates.airflow_local_settings.connect_args'
koushik-rout-samsung marked this conversation as resolved.
Show resolved Hide resolved
default: ~
load_default_connections:
description: |
Expand Down