ashb commented on a change in pull request #8739:
URL: https://github.com/apache/airflow/pull/8739#discussion_r425839031
##########
File path: airflow/models/dagbag.py
##########
@@ -456,4 +456,5 @@ def sync_to_db(self):
from airflow.models.dag import DAG
from airflow.models.serialized_dag import SerializedDagModel
DAG.bulk_sync_to_db(self.dags.values())
- SerializedDagModel.bulk_sync_to_db(self.dags.values())
+ if self.store_serialized_dags:
+ SerializedDagModel.bulk_sync_to_db(self.dags.values())
Review comment:
@kaxil FYI, plus the next hunk to models/s10n_dag.
----------------------------------------------------------------
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]