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



##########
File path: airflow/jobs/scheduler_job.py
##########
@@ -327,6 +327,13 @@ 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(
+                    "Tasks requesting more slots than pool configured. pool 
'%s' will not be scheduled", pool
+                )

Review comment:
       improved the message in 
https://github.com/apache/airflow/pull/20178/commits/a5bee3a80ee03fb9b2a4aec79a6c50c8201a4d57




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