1 class JobWorkUnit < ProxyWorkUnit
7 components = get(:components)
8 uuids = components.andand.collect {|_, v| v}
9 return items if (!uuids or uuids.empty?)
13 r = ArvadosBase::resource_class_for_uuid(u)
14 rcs[r] = [] unless rcs[r]
18 rc.where(uuid: ids).each do |obj|
19 items << obj.work_unit(components.key(obj.uuid))
27 if state == 'Complete'
31 tasks_summary = get(:tasks_summary)
32 failed = tasks_summary[:failed] || 0 rescue 0
33 done = tasks_summary[:done] || 0 rescue 0
34 running = tasks_summary[:running] || 0 rescue 0
35 todo = tasks_summary[:todo] || 0 rescue 0
36 if done + running + failed + todo > 0
37 total_tasks = done + running + failed + todo
38 (done+failed).to_f / total_tasks
45 get(:docker_image_locator)
49 get(:nondeterministic)