pipeline: introduce generic pipeline id

This is a step towards generic pipelines, i.e. replacing assemblers
with pipelines, thus creating an acyclic graph of pipelines. There
the pipeline id will be what is now the tree_id. For now though the
generic id is either the output_id or the tree_id.
This commit is contained in:
Christian Kellner 2020-12-17 17:07:25 +01:00 committed by Tom Gundersen
parent 76e72b1c3f
commit 54761e8a13

View file

@ -147,6 +147,10 @@ class Pipeline:
self.stages = []
self.assembler = None
@property
def id(self):
return self.output_id or self.tree_id
@property
def tree_id(self):
return self.stages[-1].id if self.stages else None