Skip to content

Commit

Permalink
Force airflow db reset
Browse files Browse the repository at this point in the history
  • Loading branch information
donotpush committed Jul 5, 2024
1 parent b6d08aa commit abf3e0c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,14 @@ def _create_pipeline_instance_id(self) -> str:
# disable databricks logging
for log in ["databricks.sql.client"]:
logging.getLogger(log).setLevel("WARNING")

# reset airflow db
from airflow.utils import db

for log in ["airflow"]:
logging.getLogger(log).setLevel("ERROR")

try:
db.resetdb()
except Exception:
pass

0 comments on commit abf3e0c

Please sign in to comment.