X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/cab53a136beb1c38d9c35a6a4b1e3d664f043e8d..d451eabbcbb8d5885fb30c2c341d93204a008596:/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 49f490dc3a..5b1d1b7e35 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,7 @@ class JobWorkUnit < ProxyWorkUnit end end - self.my_children = items + @my_children = items end def child_summary @@ -31,8 +31,58 @@ class JobWorkUnit < ProxyWorkUnit end end + def parameters + get(:script_parameters) + end + + def repository + get(:repository) + end + + def script + get(:script) + end + + def script_version + get(:script_version) + end + + def supplied_script_version + get(:supplied_script_version) + end + + def docker_image + get(:docker_image_locator) + end + + def nondeterministic + get(:nondeterministic) + 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 confirm_cancellation + "All unfinished child jobs and pipelines will also be canceled, even if they are being used in another job or pipeline. Are you sure you want to cancel this job?" end def uri