uranusjr commented on code in PR #30699:
URL: https://github.com/apache/airflow/pull/30699#discussion_r1201966006


##########
airflow/jobs/scheduler_job_runner.py:
##########
@@ -1298,7 +1298,7 @@ def _should_update_dag_next_dagruns(self, dag: DAG, 
dag_model: DagModel, total_a
 
     def _start_queued_dagruns(self, session: Session) -> None:
         """Find DagRuns in queued state and decide moving them to running 
state."""
-        dag_runs: Collection[DagRun] = 
self._get_next_dagruns_to_examine(DagRunState.QUEUED, session)
+        dag_runs: Collection[DagRun] = 
self._get_next_dagruns_to_examine(DagRunState.QUEUED, session).all()

Review Comment:
   Probably worthwhile to add a comment here so someone in the future don’t try 
to be smart and remove the `all()` call.



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