ashb commented on code in PR #66878:
URL: https://github.com/apache/airflow/pull/66878#discussion_r3460123834


##########
airflow-core/src/airflow/jobs/scheduler_job_runner.py:
##########
@@ -523,11 +520,33 @@ def _executable_task_instances_to_queued(self, max_tis: 
int, session: Session) -
 
         if pool_slots_free == 0:
             self.log.debug("All pools are full!")
-            return []
-
-        max_tis = int(min(max_tis, pool_slots_free))
+            return pools, 0, set()
 
+        effective_max_tis = int(min(max_tis, pool_slots_free))
         starved_pools = {pool_name for pool_name, stats in pools.items() if 
stats["open"] <= 0}
+        return pools, effective_max_tis, starved_pools
+
+    def _select_task_instances_to_queue(
+        self,
+        max_tis: int,
+        pools: dict[str, PoolStats],
+        starved_pools: set[str],
+        session: Session,

Review Comment:
   ```suggestion
           *,
           session: Session,
   ```



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