set instance.success when finished. refs #1424
authorTom Clegg <tom@clinicalfuture.com>
Wed, 27 Mar 2013 19:26:45 +0000 (12:26 -0700)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 27 Mar 2013 19:26:45 +0000 (12:26 -0700)
cli/wh-run-pipeline-instance

index 197519ad63de5992a598fad92a46e3421fa06f2b..fd7e6a2243e244835e8449308ddd4ceecc8c7bdc 100755 (executable)
@@ -464,6 +464,8 @@ class WhRunPipelineInstance
       report_status
       sleep 10 if moretodo
     end
+    @instance[:success] = @components.reject { |cname,c| c[:job] and c[:job][:success] }.empty?
+    @instance.save
   end
 
   def cleanup