From b17d7233f5ccb8ec3d857ae3e506d53377207376 Mon Sep 17 00:00:00 2001 From: Brett Smith Date: Tue, 12 Aug 2014 14:48:32 -0400 Subject: [PATCH] 3405: Mark pipeline instances failed when they're aborted. --- sdk/cli/bin/arv-run-pipeline-instance | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.30.2