Fokko commented on a change in pull request #4862: [AIRFLOW-4035] Remove DagBag 
from /graph
URL: https://github.com/apache/airflow/pull/4862#discussion_r268406007
 
 

 ##########
 File path: tests/www/test_views.py
 ##########
 @@ -755,6 +755,7 @@ def setUp(self):
         from airflow.www.views import dagbag
         from airflow.utils.state import State
         dag = DAG(self.DAG_ID, start_date=self.DEFAULT_DATE)
+        dag.sync_to_db()
 
 Review comment:
   Good point @feng-tao. Apparently, without the syncing, the tests become 
flakey. I think we should solve the root cause of this, but this might not be 
trivial.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to