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

potiuk pushed a commit to branch v2-8-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit b56564e293c606af95cd30901c1d071f816b25af
Author: koushik-rout-samsung 
<[email protected]>
AuthorDate: Thu Jan 25 18:00:03 2024 +0000

    Updated config.yml for environment variable sql_alchemy_connect_args  
(#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
    
    (cherry picked from commit 8fd9fdb812b71e50dc120d65a5cd0b43bcfcef13)
---
 airflow/config_templates/config.yml | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/airflow/config_templates/config.yml 
b/airflow/config_templates/config.yml
index 407d0cb05a..4107a49895 100644
--- a/airflow/config_templates/config.yml
+++ b/airflow/config_templates/config.yml
@@ -583,11 +583,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: |

Reply via email to