[ARVADOS] updated: 815549686de7aeaff01497bec88e11540ca0ad21
git at public.curoverse.com
git at public.curoverse.com
Tue Aug 12 14:47:03 EDT 2014
Summary of changes:
sdk/cli/bin/arv-run-pipeline-instance | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
via 815549686de7aeaff01497bec88e11540ca0ad21 (commit)
from 3f73d1132380d90e383861bcc50ebbcf6b078abb (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
commit 815549686de7aeaff01497bec88e11540ca0ad21
Author: Brett Smith <brett at curoverse.com>
Date: Tue Aug 12 14:48:32 2014 -0400
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 d78e50d..a605cee 100755
--- a/sdk/cli/bin/arv-run-pipeline-instance
+++ b/sdk/cli/bin/arv-run-pipeline-instance
@@ -717,7 +717,13 @@ class WhRunPipelineInstance
end
def abort(msg)
- @instance.log_stderr(msg) if @instance
+ if @instance
+ if [nil, "RunningOnClient", "RunningOnServer"].include?(@instance[:state])
+ @instance[:state] = "Failed"
+ @instance.save
+ end
+ @instance.log_stderr(msg)
+ end
Kernel::abort(msg)
end
end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list