summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZuul <zuul@review.openstack.org>2018-12-01 15:43:27 +0000
committerGerrit Code Review <review@openstack.org>2018-12-01 15:43:27 +0000
commit271feec3ca9182e746fb0562ef22fff1e9c86c81 (patch)
treecd213e762bc74b8bf87d4f306c135e11863e5490
parent328209332baf7c37425b742465f2f329c44f03e2 (diff)
parent101ec7c4863804234153dff55efc36313d3e328b (diff)
Merge "Only count live items for relative priority"
-rw-r--r--zuul/manager/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py
index 90d02d1..775c590 100644
--- a/zuul/manager/__init__.py
+++ b/zuul/manager/__init__.py
@@ -87,7 +87,9 @@ class PipelineManager(object):
87 87
88 def getNodePriority(self, item): 88 def getNodePriority(self, item):
89 items = self.pipeline.getAllItems() 89 items = self.pipeline.getAllItems()
90 items = [i for i in items if i.change.project == item.change.project] 90 items = [i for i in items
91 if i.change.project == item.change.project and
92 i.live]
91 for idx, val in enumerate(items): 93 for idx, val in enumerate(items):
92 if item == val: 94 if item == val:
93 return idx 95 return idx