arnoldmr01 commented on code in PR #58025:
URL: https://github.com/apache/airflow/pull/58025#discussion_r2515728318


##########
airflow-core/src/airflow/models/dagrun.py:
##########
@@ -572,11 +573,12 @@ def active_runs_of_dags(
         )
         if exclude_backfill:
             query = query.where(cls.run_type != DagRunType.BACKFILL_JOB)
-        return dict(session.execute(query).all())
+        result = session.execute(query).all()

Review Comment:
   I will remove the `result = session.execute(query).all` and directly return 
the result with `return {dag_id : count for dag_id, count in 
session.execute(query)}`



-- 
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]

Reply via email to