18102: Fix double-unlock in scheduler.
[arvados.git] / lib / dispatchcloud / scheduler / run_queue.go
index b9d653a821e4b6650d2666e368414df43843e4b8..d2f6d1c2cb1b4eafa49a1421bae6c33eb9cb98d4 100644 (file)
@@ -66,8 +66,7 @@ tryrun:
                                // starve this one by using keeping
                                // idle workers alive on different
                                // instance types.
-                               logger.Debug("unlocking: AtQuota and no unalloc workers")
-                               sch.queue.Unlock(ctr.UUID)
+                               logger.Debug("overquota")
                                overquota = sorted[i:]
                                break tryrun
                        } else if logger.Info("creating new instance"); sch.pool.Create(it) {