12183: Fix renamed symbol
[arvados.git] / services / crunch-dispatch-slurm / squeue.go
index 85fadbdd996c4a076a259f2f19fda62101c0adc3..d22e02597b75d5d5d7a0b74599cc4d142d002345 100644 (file)
@@ -1,3 +1,7 @@
+// Copyright (C) The Arvados Authors. All rights reserved.
+//
+// SPDX-License-Identifier: AGPL-3.0
+
 package main
 
 import (
@@ -96,6 +100,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()