don't exit if wathed job failed
authorDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 22 May 2017 19:04:08 +0000 (21:04 +0200)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Mon, 22 May 2017 19:04:08 +0000 (21:04 +0200)
gnt-running.sh

index fcb4d03..97e51d6 100755 (executable)
@@ -3,7 +3,7 @@ while true ; do
   JOBID=`gnt-job list --no-headers --running | tee /dev/stderr | awk '{ print $1; exit }'`
   if [ -n "$JOBID" ]
   then
-       gnt-job watch $JOBID
+       gnt-job watch $JOBID || true # don't exit on failed jobs
   else
        sleep 5
   fi