Browse Source

Merge "Only count live items for relative priority"

tags/3.4.0
Zuul 5 months ago
parent
commit
271feec3ca
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      zuul/manager/__init__.py

+ 3
- 1
zuul/manager/__init__.py View File

@@ -87,7 +87,9 @@ class PipelineManager(object):
87 87
 
88 88
     def getNodePriority(self, item):
89 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 93
         for idx, val in enumerate(items):
92 94
             if item == val:
93 95
                 return idx

Loading…
Cancel
Save