Skip to content

Commit

Permalink
AIP-84 Fix sqlite in non tests environment (apache#44149)
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrejeambrun authored and Lefteris Gilmaz committed Jan 5, 2025
1 parent 288348c commit 27b988b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ def configure_orm(disable_connection_pool=False, pool_class=None):
else:
connect_args = {}

if os.environ.get("AIRFLOW__CORE__UNIT_TEST_MODE") == "True" and SQL_ALCHEMY_CONN.startswith("sqlite"):
if SQL_ALCHEMY_CONN.startswith("sqlite"):
# FastAPI runs sync endpoints in a separate thread. SQLite does not allow
# to use objects created in another threads by default. Allowing that in test
# to so the `test` thread and the tested endpoints can use common objects.
Expand Down

0 comments on commit 27b988b

Please sign in to comment.