X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/bbbf60994bf4fc2733d3395b870359b5a96df227..c554b80187e6e076cbf147b1abb34ed9eb36ce93:/apps/workbench/app/models/work_unit.rb diff --git a/apps/workbench/app/models/work_unit.rb b/apps/workbench/app/models/work_unit.rb index 7439128ed7..b83847ea92 100644 --- a/apps/workbench/app/models/work_unit.rb +++ b/apps/workbench/app/models/work_unit.rb @@ -95,6 +95,10 @@ class WorkUnit # summary status of any children of this work unit end + def child_summary_str + # textual representation of child summary + end + def can_cancel? # returns true if this work unit can be canceled end @@ -114,4 +118,49 @@ class WorkUnit def has_unreadable_children # accept it if you can't understand your own children end + + # view helper methods + def link_to_log + # display a link to log if present + end + + def walltime + # return walltime for a running or completed work unit + end + + def cputime + # return cputime for a running or completed work unit + end + + def queuedtime + # return queued time if the work unit is queued + end + + def show_child_summary + # child summary for a running work unit + end + + def is_running? + # is the work unit in running state? + end + + def is_paused? + # is the work unit in paused state? + end + + def is_finished? + # is the work unit in finished state? + end + + def is_failed? + # is this work unit in failed state? + end + + def ran_for_str + # display string for how long it has run + end + + def started_and_active_for_str + # display string for how long it has been active + end end