kaxil commented on a change in pull request #20178:
URL: https://github.com/apache/airflow/pull/20178#discussion_r766790691
##########
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:
```suggestion
self.log.warning(
"Tasks requesting more slots (%s) than are configured in
the pool. pool '%s' will not be scheduled", pool
)
```
"pool '%s' will not be scheduled"" is not true though -- if there is another
task that uses than pool and needs less slots it will go through
--
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]