Skip to content

Commit

Permalink
Revert "Read DAGs from SerializedDagModel instead of DagBag"
Browse files Browse the repository at this point in the history
This reverts commit 89ec2ea.
  • Loading branch information
fritz-astronomer committed Jan 2, 2024
1 parent 5fddd5f commit 954611d
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions astronomer_starship/starship/services/local_airflow_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,7 @@ def get_variable(variable: str):

@ttl_cache(ttl=60)
def get_dags():
dags = {}
try:
dags = DagBag(read_dags_from_db=True).dags
except Exception as e:
logging.exception(e)
print(e)
if not len(dags):
try:
dags = DagBag().dags
except Exception as e:
logging.exception(e)
print(e)
dags = DagBag().dags
return dags


Expand Down

0 comments on commit 954611d

Please sign in to comment.