You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/03/22 16:52:25 UTC

[GitHub] [airflow] kaxil commented on a change in pull request #7806: Decouple DAG from DagBag - remove cyclic imports

kaxil commented on a change in pull request #7806: Decouple DAG from DagBag - remove cyclic imports
URL: https://github.com/apache/airflow/pull/7806#discussion_r396115653
 
 

 ##########
 File path: airflow/models/dagbag.py
 ##########
 @@ -455,5 +449,5 @@ def sync_to_db(self):
         """
         Save attributes about list of DAG to the DB.
         """
-        from airflow.models.dag import DAG
         DAG.bulk_sync_to_db(self.dags.values())
+        SerializedDagModel.bulk_sync_to_db(self.dags.values())
 
 Review comment:
   We don't want to write Serialized DAGs in bulk !

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services