yangwwei commented on a change in pull request #173:
URL: 
https://github.com/apache/incubator-yunikorn-core/pull/173#discussion_r450688763



##########
File path: pkg/scheduler/scheduler.go
##########
@@ -110,6 +111,39 @@ func (s *Scheduler) internalPreemption() {
        }
 }
 
+func (s *Scheduler) internalInspectOutstandingRequests() {
+       for {
+               time.Sleep(1000 * time.Millisecond)
+               s.inspectOutstandingRequests()
+       }
+}
+
+func (s *Scheduler) inspectOutstandingRequests() {

Review comment:
       I found `UpdateUnschedulableStateForOutstandingRequests` is also a bit 
confusing. Instead of updating this function name, I added more code comment to 
explain what it does:
   
   ```
   // inspect on the outstanding requests for each of the queues,
   // update request state accordingly to shim if needed.
   // this function filters out all outstanding requests that being
   // skipped due to insufficient cluster resources and update the
   // state through the ContainerSchedulingStateUpdaterPlugin in order
   // to trigger the auto-scaling.
   ```




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

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to