10979: Add missing SqueueChecker initialization.
authorTom Clegg <tom@curoverse.com>
Mon, 27 Feb 2017 16:54:40 +0000 (11:54 -0500)
committerTom Clegg <tom@curoverse.com>
Mon, 27 Feb 2017 16:54:40 +0000 (11:54 -0500)
refs #10979

services/crunch-dispatch-slurm/squeue.go

index 85fadbdd996c4a076a259f2f19fda62101c0adc3..ee87a44fff5866632b1a27aa8910b332a0ba3b8d 100644 (file)
@@ -96,6 +96,7 @@ func (sqc *SqueueChecker) start() {
 // All waits for the next squeue invocation, and returns all job
 // names reported by squeue.
 func (sqc *SqueueChecker) All() []string {
+       sqc.startOnce.Do(sqc.start)
        sqc.L.Lock()
        defer sqc.L.Unlock()
        sqc.Wait()