mik-laj commented on a change in pull request #7477: [AIRFLOW-6857][depends on AIRFLOW-6856] Bulk sync DAGs URL: https://github.com/apache/airflow/pull/7477#discussion_r382527994
########## File path: airflow/jobs/scheduler_job.py ########## @@ -785,8 +785,7 @@ def process_file(self, file_path, zombies, pickle_dags=False, session=None): return [], len(dagbag.import_errors) # Save individual DAGs in the ORM and update DagModel.last_scheduled_time - for dag in dagbag.dags.values(): - dag.sync_to_db() + DAG.bulk_sync_to_db(dagbag.dags.values()) Review comment: I created a helper method in DagBag. ---------------------------------------------------------------- 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 With regards, Apache Git Services