projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
9687: Added method to access container's exit_code. Updated test to explicitly test...
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
container_work_unit.rb
diff --git
a/apps/workbench/app/models/container_work_unit.rb
b/apps/workbench/app/models/container_work_unit.rb
index 4f4c915e066ce3d8c2ef4427336e5a71b0b87b2e..248c76351a5d01124b77d450e3e3b8859a3d27d8 100644
(file)
--- a/
apps/workbench/app/models/container_work_unit.rb
+++ b/
apps/workbench/app/models/container_work_unit.rb
@@
-75,9
+75,15
@@
class ContainerWorkUnit < ProxyWorkUnit
end
def state_label
+ exit_code = get_combined(:exit_code)
+ return "Failed" if (exit_code && exit_code != 0)
get_combined(:state)
end
+ def exit_code
+ get_combined(:exit_code)
+ end
+
def docker_image
get_combined(:container_image)
end