projects
/
arvados.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9889021
)
10979: Add missing SqueueChecker initialization.
author
Tom Clegg <tom@curoverse.com>
Mon, 27 Feb 2017 16:54:40 +0000
(11:54 -0500)
committer
Tom Clegg <tom@curoverse.com>
Mon, 27 Feb 2017 16:54:40 +0000
(11:54 -0500)
refs #10979
services/crunch-dispatch-slurm/squeue.go
patch
|
blob
|
history
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()