projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
8784: Fix test for latest firefox.
[arvados.git]
/
services
/
crunch-dispatch-slurm
/
squeue.go
diff --git
a/services/crunch-dispatch-slurm/squeue.go
b/services/crunch-dispatch-slurm/squeue.go
index 85fadbdd996c4a076a259f2f19fda62101c0adc3..ee87a44fff5866632b1a27aa8910b332a0ba3b8d 100644
(file)
--- 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()