eladkal commented on a change in pull request #20178:
URL: https://github.com/apache/airflow/pull/20178#discussion_r767855271



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -327,6 +327,17 @@ def _executable_task_instances_to_queued(self, max_tis: 
int, session: Session =
                 self.log.warning("Tasks using non-existent pool '%s' will not 
be scheduled", pool)
                 continue
 
+            pool_total = pools[pool]["total"]
+            if task_instance.pool_slots > pool_total:
+                self.log.warning(
+                    "Not executing %s since requesting %s slots when total 
pool '%s' slots are %s.",
+                    task_instance,
+                    task_instance.pool_slots,
+                    pool,
+                    pool_total,
+                )

Review comment:
       applied in 
https://github.com/apache/airflow/pull/20178/commits/6a7a9657f6deb6c5c58f0f96ffb2143318f0877d




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