KoviAnusha commented on code in PR #58062:
URL: https://github.com/apache/airflow/pull/58062#discussion_r2531477799
##########
airflow-core/src/airflow/models/serialized_dag.py:
##########
@@ -648,11 +650,11 @@ def load_json(deps_data):
.join(cls.dag_model)
.where(~DagModel.is_stale)
)
- iterator = (
- [(dag_id, load_json(deps_data)) for dag_id, deps_data in query]
- if load_json is not None
- else query.all()
- )
- resolver = _DagDependenciesResolver(dag_id_dependencies=iterator,
session=session)
+ if load_json is not None:
+ iterator_result = [(dag_id, load_json(deps_data)) for dag_id,
deps_data in query]
+ else:
+ iterator_result = [(str(row[0]), row[1] if row[1] else []) for row
in query.all()]
Review Comment:
Something like this?
https://github.com/apache/airflow/pull/58062/files#diff-1b5b6980cc04bd36e0370fe7353436356bf9c6995c75a8bc3c60fb187a4647ebR608
--
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]