X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/1130ddc26fde448423404b4860d650a43e981e25..d121e087ad1b4e91f869dbd57534c6d6ce51d19d:/services/crunch-dispatch-slurm/squeue.go?ds=sidebyside 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()