From 6632a4f199399e8ee6e48223ee067c62a7f3aba7 Mon Sep 17 00:00:00 2001 From: Newnius Date: Thu, 30 Apr 2020 19:31:26 +0800 Subject: [PATCH] update --- src/scheduler_fair.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/scheduler_fair.go b/src/scheduler_fair.go index 0fa03c5..a3e771b 100644 --- a/src/scheduler_fair.go +++ b/src/scheduler_fair.go @@ -247,7 +247,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus { } } } - log.Info(candidates) + //log.Info(candidates) } /* second round, find vacant gpu */ @@ -277,7 +277,7 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus { break } } - log.Info(candidates) + //log.Info(candidates) } /* third round, find gpu to be released */ @@ -327,11 +327,14 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task) NodeStatus { break } } - log.Info(candidates) + //log.Info(candidates) } } - log.Info("allocationType is ", allocationType) + if len(candidates) > 0 { + log.Info("allocationType is ", allocationType) + log.Info(candidates) + } /* assign */ if len(candidates) > 0 {