1
0
mirror of https://github.com/newnius/YAO-scheduler.git synced 2025-12-15 08:16:43 +00:00
This commit is contained in:
2020-05-04 00:52:27 +08:00
parent 9ab8b7d8d2
commit 462d251bfb
2 changed files with 1 additions and 4 deletions

View File

@@ -353,7 +353,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
for cur := start; ; {
if _, ok := locks[cur.ID]; !ok {
log.Info("lock ", cur.ID)
cur.Lock.Lock()
locks[cur.ID] = &cur.Lock
}
@@ -403,7 +402,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
allocationType = 2
for cur := start; ; {
if _, ok := locks[cur.ID]; !ok {
log.Info("lock ", cur.ID)
cur.Lock.Lock()
locks[cur.ID] = &cur.Lock
}
@@ -445,7 +443,6 @@ func (scheduler *SchedulerFair) AcquireResource(job Job, task Task, nodes []Node
allocationType = 3
for cur := start; ; {
if _, ok := locks[cur.ID]; !ok {
log.Info("lock ", cur.ID)
cur.Lock.Lock()
locks[cur.ID] = &cur.Lock
}