Created
April 12, 2021 20:34
-
-
Save poteznyKrolik/df0127d10afc34ba2f2ceb7b897ba08f to your computer and use it in GitHub Desktop.
airflow_db_conn
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os, sys | |
| airflow_core_sqlalchemy_conn = f"postgresql+psycopg2://{os.environ.get('AIRFLOW_DB_USER')}:{os.environ.get('AIRFLOW_DB_PASS')}@{os.environ.get('AIRFLOW_DB_HOST')}:{os.environ.get('AIRFLOW_DB_PORT')}/airflow" | |
| os.environ['AIRFLOW__CORE__SQL_ALCHEMY_CONN'] = airflow_core_sqlalchemy_conn | |
| print(airflow_core_sqlalchemy_conn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment