X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/17f4a03d71d8d6130f796d61fa49b8480bf555b6..e7876a3ac520b128be7836e30172079ab2af5e45:/services/crunch-dispatch-slurm/squeue.go diff --git a/services/crunch-dispatch-slurm/squeue.go b/services/crunch-dispatch-slurm/squeue.go index 85fadbdd99..ee87a44fff 100644 --- a/services/crunch-dispatch-slurm/squeue.go +++ b/services/crunch-dispatch-slurm/squeue.go @@ -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()