Merge branch '13399-log-low-priority'
authorTom Clegg <tclegg@veritasgenetics.com>
Thu, 26 Apr 2018 19:30:03 +0000 (15:30 -0400)
committerTom Clegg <tclegg@veritasgenetics.com>
Thu, 26 Apr 2018 19:30:03 +0000 (15:30 -0400)
refs #13399

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg@veritasgenetics.com>

services/crunch-dispatch-slurm/squeue.go

index ee79c6f774c1ca4cb277f1c356ebca792d790f49..9514da822b7e748a7498fab0aafb2104371dae65 100644 (file)
@@ -171,7 +171,10 @@ func (sqc *SqueueChecker) check() {
                        // reappeared, so rather than second-guessing
                        // whether SLURM is ready, we just keep trying
                        // this until it works.
+                       log.Printf("releasing held job %q", uuid)
                        sqc.Slurm.Release(uuid)
+               } else if p < 1<<20 && replacing.wantPriority > 0 {
+                       log.Printf("warning: job %q has low priority %d, nice %d, state %q, reason %q", uuid, p, n, state, reason)
                }
        }
        sqc.queue = newq