ashb commented on code in PR #24743:
URL: https://github.com/apache/airflow/pull/24743#discussion_r913137378
##########
airflow/models/dag.py:
##########
@@ -2509,6 +2524,67 @@ def bulk_write_to_db(cls, dags: Collection["DAG"],
session=NEW_SESSION):
DagCode.bulk_sync_to_db(filelocs, session=session)
+ from airflow.models.dataset import Dataset
+ from airflow.models.dataset_dag_ref import DatasetDagRef
+ from airflow.models.dataset_task_ref import DatasetTaskRef
Review Comment:
This one isn't an optimisation in my head, but (I think) being able to not
add 100-200 lines of code!
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]