Now includes runtime_constraints from the component when creating a new job. no issue #
authorPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 24 Jun 2014 13:12:59 +0000 (09:12 -0400)
committerPeter Amstutz <peter.amstutz@curoverse.com>
Tue, 24 Jun 2014 13:12:59 +0000 (09:12 -0400)
sdk/cli/bin/arv-run-pipeline-instance

index 4810768ded0d5cd5a7051804dc38a8fa2f3d80c2..8e26600ff119dbaa55e0fdf78c06156540198138 100755 (executable)
@@ -469,6 +469,7 @@ class WhRunPipelineInstance
             :repository => c[:repository],
             :nondeterministic => c[:nondeterministic],
             :output_is_persistent => c[:output_is_persistent] || false,
+            :runtime_constraints => c[:runtime_constraints],
             :owner_uuid => owner_uuid,
             # TODO: Delete the following three attributes when
             # supporting pre-20140418 API servers is no longer
@@ -591,7 +592,7 @@ class WhRunPipelineInstance
           ended += 1
           if c[:job][:success] == true
             succeeded += 1
-          elsif c[:job][:success] == false
+          elsif c[:job][:success] == false or c[:job][:cancelled_at]
             failed += 1
           end
         end