[ARVADOS] created: b307cc4cf2f31eccd1ae5ef3310cfee309f6688e

Git user git at public.curoverse.com
Mon Oct 17 06:15:52 EDT 2016


        at  b307cc4cf2f31eccd1ae5ef3310cfee309f6688e (commit)


commit b307cc4cf2f31eccd1ae5ef3310cfee309f6688e
Author: Tom Clegg <tom at curoverse.com>
Date:   Mon Oct 17 06:15:29 2016 -0400

    10280: Fix ignored error from cmd.Start().

diff --git a/services/crunch-dispatch-slurm/squeue.go b/services/crunch-dispatch-slurm/squeue.go
index fafa3c3..61decde 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())

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list