X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b9d2799dfebae724dda3b3e28641116ca5daf5c7..dfe0ec7bfec3fd72cd40d3962e5c8af08d2413d2:/services/crunch-dispatch-slurm/squeue.go diff --git a/services/crunch-dispatch-slurm/squeue.go b/services/crunch-dispatch-slurm/squeue.go index fafa3c3607..61decde61c 100644 --- a/services/crunch-dispatch-slurm/squeue.go +++ b/services/crunch-dispatch-slurm/squeue.go @@ -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())