Do not submit min-ready requests with min-ready 0
The min-ready engine didn't recognize a value of 0 properly and would continue submitting requests, even when disabled. Change-Id: I93bcfda409cd5ce16a85fa42a08561bc6034d938
This commit is contained in:
parent
c6e4b976e6
commit
a2c2983407
@ -861,7 +861,7 @@ class NodePool(threading.Thread):
|
||||
if label.name not in needed_labels:
|
||||
continue
|
||||
min_ready = label.min_ready
|
||||
if min_ready == -1:
|
||||
if min_ready <= 0:
|
||||
continue # disabled
|
||||
|
||||
# Calculate how many nodes of this type we need created
|
||||
|
Loading…
Reference in New Issue
Block a user