X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3d60a5dcfb6765b223d224dda3980226230464d0..695702b379a7be5abd96742ffee7f4f4bfcef2a8:/apps/workbench/app/models/job_work_unit.rb diff --git a/apps/workbench/app/models/job_work_unit.rb b/apps/workbench/app/models/job_work_unit.rb index 80dea192d1..a3f13f388c 100644 --- a/apps/workbench/app/models/job_work_unit.rb +++ b/apps/workbench/app/models/job_work_unit.rb @@ -1,6 +1,6 @@ class JobWorkUnit < ProxyWorkUnit def children - return self.my_children if self.my_children + return @my_children if @my_children # Jobs components items = [] @@ -20,7 +20,15 @@ class JobWorkUnit < ProxyWorkUnit end end - self.my_children = items + @my_children = items + end + + def child_summary + if children.any? + super + else + get(:tasks_summary) + end end def parameters @@ -51,16 +59,26 @@ class JobWorkUnit < ProxyWorkUnit get(:nondeterministic) end - def child_summary - if children.any? - super - else - get(:tasks_summary) - end + def runtime_constraints + get(:runtime_constraints) + end + + def priority + get(:priority) + end + + def log_collection + get(:log) + end + + def outputs + items = [] + items << get(:output) if get(:output) + items end def can_cancel? - true + state_label.in? ["Queued", "Running"] end def uri