projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
closes #9587
[arvados.git]
/
apps
/
workbench
/
app
/
models
/
pipeline_instance_work_unit.rb
diff --git
a/apps/workbench/app/models/pipeline_instance_work_unit.rb
b/apps/workbench/app/models/pipeline_instance_work_unit.rb
index bc2b3e77a0a74d843404a06b098cdc21045e578f..293a77c099d829ae58e58d07784932ba1e9c5fdf 100644
(file)
--- a/
apps/workbench/app/models/pipeline_instance_work_unit.rb
+++ b/
apps/workbench/app/models/pipeline_instance_work_unit.rb
@@
-18,10
+18,10
@@
class PipelineInstanceWorkUnit < ProxyWorkUnit
if job[:uuid] and jobs[job[:uuid]]
items << jobs[job[:uuid]].work_unit(name)
else
if job[:uuid] and jobs[job[:uuid]]
items << jobs[job[:uuid]].work_unit(name)
else
- items << JobWorkUnit.new(job, name)
+ items << JobWorkUnit.new(job, name
, uuid
)
end
else
end
else
- items << JobWorkUnit.new(c, name)
+ items << JobWorkUnit.new(c, name
, uuid
)
end
else
@unreadable_children = true
end
else
@unreadable_children = true
@@
-32,6
+32,17
@@
class PipelineInstanceWorkUnit < ProxyWorkUnit
@my_children = items
end
@my_children = items
end
+ def outputs
+ items = []
+ components = get(:components)
+ components.each do |name, c|
+ if c.is_a?(Hash)
+ items << c[:output_uuid] if c[:output_uuid]
+ end
+ end
+ items
+ end
+
def uri
uuid = get(:uuid)
"/pipeline_instances/#{uuid}"
def uri
uuid = get(:uuid)
"/pipeline_instances/#{uuid}"
@@
-40,4
+51,8
@@
class PipelineInstanceWorkUnit < ProxyWorkUnit
def title
"pipeline"
end
def title
"pipeline"
end
+
+ def template_uuid
+ get(:pipeline_template_uuid)
+ end
end
end