ashb commented on a change in pull request #8739: URL: https://github.com/apache/airflow/pull/8739#discussion_r425839302
########## 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: Means I can do ``` non_serialized_dagbag = DagBag(store_serialized_dags=False, include_examples=False) non_serialized_dagbag.store_serialized_dags = True non_serialized_dagbag.sync_to_db() ``` ---------------------------------------------------------------- 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: us...@infra.apache.org