diff options
author | Zuul <zuul@review.opendev.org> | 2022-04-08 05:57:43 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2022-04-08 05:57:43 +0000 |
commit | 895bb3646740862e0a9238ba52561c0df4362bcc (patch) | |
tree | 2f8ba07458f29f62edd9014ed76567fd4f66d755 | |
parent | 8d98ab7bf4d7118479de59a7d5b26a14d1a436f5 (diff) | |
parent | e159b3ebd92a77a8c25518235bc8887e2edaaafa (diff) | |
download | zuul-895bb3646740862e0a9238ba52561c0df4362bcc.tar.gz |
Merge "Only try to revise unaccepted node requests"
-rw-r--r-- | zuul/manager/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zuul/manager/__init__.py b/zuul/manager/__init__.py index 84897b3df..418274859 100644 --- a/zuul/manager/__init__.py +++ b/zuul/manager/__init__.py @@ -1583,9 +1583,9 @@ class PipelineManager(metaclass=ABCMeta): request_id, cached=True) if not node_request: continue - if node_request.fulfilled: - # If the node request is already fulfilled, there is no - # need to update the relative priority. + if node_request.state != model.STATE_REQUESTED: + # If the node request was locked and accepted by a + # provider, we can no longer update the relative priority. continue if node_request.relative_priority != priority: self.sched.nodepool.reviseRequest( |