dstandish commented on code in PR #24743:
URL: https://github.com/apache/airflow/pull/24743#discussion_r913094044
##########
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:
Roger. I reckon let's leave that as an optimization and not let it block
this first pass?
##########
airflow/models/dagrun.py:
##########
@@ -631,6 +631,68 @@ def update_state(
session.merge(self)
# We do not flush here for performance reasons(It increases queries
count by +20)
+ from airflow.models import Dataset
Review Comment:
done
--
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]