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:
David Shrewsbury 2018-02-01 15:44:18 -05:00
parent c6e4b976e6
commit a2c2983407

View File

@ -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