16723: Fix wrong operation shown in debug log.
authorTom Clegg <tom@tomclegg.ca>
Fri, 21 Aug 2020 01:34:40 +0000 (21:34 -0400)
committerTom Clegg <tom@tomclegg.ca>
Fri, 21 Aug 2020 01:34:40 +0000 (21:34 -0400)
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@tomclegg.ca>

lib/dispatchcloud/scheduler/sync.go

index 116ca7643117d3f4df3b6e8d4e99864a44d6dfe6..c047f9b8704f55a15c5181d2faf033a29ba52ff2 100644 (file)
@@ -115,7 +115,7 @@ func (sch *Scheduler) kill(uuid string, reason string) {
 
 func (sch *Scheduler) requeue(ent container.QueueEnt, reason string) {
        uuid := ent.Container.UUID
-       if !sch.uuidLock(uuid, "cancel") {
+       if !sch.uuidLock(uuid, "requeue") {
                return
        }
        defer sch.uuidUnlock(uuid)