X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/c405873d87e0764acf3855c559c85fa6d7a63cfb..53a9aa7651a9fed6d88f4ece0f8d4cd10a77a63f:/services/crunch-dispatch-slurm/squeue.go diff --git a/services/crunch-dispatch-slurm/squeue.go b/services/crunch-dispatch-slurm/squeue.go index 34e6632b48..61decde61c 100644 --- a/services/crunch-dispatch-slurm/squeue.go +++ b/services/crunch-dispatch-slurm/squeue.go @@ -19,7 +19,7 @@ type Squeue struct { // squeueFunc func squeueFunc() *exec.Cmd { - return exec.Command("squeue", "--format=%j") + return exec.Command("squeue", "--all", "--format=%j") } var squeueCmd = squeueFunc @@ -45,7 +45,11 @@ func (squeue *Squeue) RunSqueue() { log.Printf("Error creating stdout pipe for squeue: %v", err) return } - cmd.Start() + err = cmd.Start() + if err != nil { + log.Printf("Error running squeue: %v", err) + return + } scanner := bufio.NewScanner(sq) for scanner.Scan() { newSqueueContents = append(newSqueueContents, scanner.Text())