Skip to content

Commit

Permalink
a93d550: (HEAD, twitter/1.10+twtr) [TWTR][[AIRFLOW-4939]] Add Default…
Browse files Browse the repository at this point in the history
… Retries and fix a small DAG refresh bug (twitter-forks#3) (2 weeks ago)
  • Loading branch information
Vishesh Jain committed Aug 28, 2019
1 parent 6b339af commit bb31c65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion airflow/models/dagbag.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,10 @@ def get_dag(self, dag_id):
)
):
# Reprocess source file
# TODO: remove the below hack to find relative dag location in webserver
filepath = dag.fileloc if dag else orm_dag.fileloc
found_dags = self.process_file(
filepath=correct_maybe_zipped(orm_dag.fileloc), only_if_updated=False)
filepath=correct_maybe_zipped(filepath), only_if_updated=False)

# If the source file no longer exports `dag_id`, delete it from self.dags
if found_dags and dag_id in [found_dag.dag_id for found_dag in found_dags]:
Expand Down

0 comments on commit bb31c65

Please sign in to comment.