kunaljubce commented on code in PR #59823:
URL: https://github.com/apache/airflow/pull/59823#discussion_r2649511205


##########
airflow-core/tests/unit/jobs/test_scheduler_job.py:
##########
@@ -8061,10 +8055,10 @@ def 
test_start_queued_dagruns_uses_latest_max_active_runs_from_dag_model(self, d
         )
 
         # Verify we now have 2 running dag runs
-        running_count = (
-            session.query(DagRun)
-            .filter(DagRun.dag_id == dag.dag_id, DagRun.state == 
DagRunState.RUNNING)
-            .count()
+        running_count = len(
+            session.scalars(
+                select(DagRun).where(DagRun.dag_id == dag.dag_id, DagRun.state 
== DagRunState.RUNNING)
+            ).all()

Review Comment:
   Yep agreed, making this change too!



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