projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge branch 'master' into 9687-container-request-display
[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 1ed182c35f8482e39537e0591c849f8538d5934f..944dc02a5578224d2e85696a817862db088f0925 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
+ ec = exit_code
+ return "Failed" if (ec && ec != 0)
get_combined(:state)
end
+ def exit_code
+ get_combined(:exit_code)
+ end
+
def docker_image
get_combined(:container_image)
end