dstandish commented on code in PR #45371:
URL: https://github.com/apache/airflow/pull/45371#discussion_r1905803723
##########
airflow/models/dag.py:
##########
@@ -1847,7 +1859,9 @@ def bulk_write_to_db(
from airflow.dag_processing.collection import AssetModelOperation,
DagModelOperation
log.info("Sync %s DAGs", len(dags))
- dag_op = DagModelOperation({dag.dag_id: dag for dag in dags}) # type:
ignore[misc]
+ dag_op = DagModelOperation(
+ bundle_name=bundle_name, bundle_version=bundle_version,
dags={dag.dag_id: dag for dag in dags}
Review Comment:
```suggestion
bundle_name=bundle_name, bundle_version=bundle_version,
dags={d.dag_id: d for d in dags}
```
--
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]