From: Brett Smith Date: Tue, 12 Aug 2014 18:48:32 +0000 (-0400) Subject: 3405: Mark pipeline instances failed when they're aborted. X-Git-Tag: 1.1.0~2331^2 X-Git-Url: https://git.arvados.org/arvados.git/commitdiff_plain/b17d7233f5ccb8ec3d857ae3e506d53377207376 3405: Mark pipeline instances failed when they're aborted. --- diff --git a/sdk/cli/bin/arv-run-pipeline-instance b/sdk/cli/bin/arv-run-pipeline-instance index 8274f4c876..980ce83ae3 100755 --- a/sdk/cli/bin/arv-run-pipeline-instance +++ b/sdk/cli/bin/arv-run-pipeline-instance @@ -724,7 +724,14 @@ class WhRunPipelineInstance end def abort(msg) - @instance.log_stderr(msg) if @instance + if @instance + if ["New", "Ready", "RunningOnClient", + "RunningOnServer"].include?(@instance[:state]) + @instance[:state] = "Failed" + @instance.save + end + @instance.log_stderr(msg) + end Kernel::abort(msg) end end