Fix problem abandoning machines in BUILD.
Logic error prevented us from abandoning machines that were taking too long to build. Change-Id: I1457a7769b3733b4b18e6067294e62880cebb7eb
This commit is contained in:
@@ -106,9 +106,9 @@ def check_machine(client, machine, error_counts):
|
||||
count)
|
||||
if count >= 5:
|
||||
raise Exception("Too many errors querying machine %s" % machine.id)
|
||||
else:
|
||||
if time.time() - machine.state_time >= ABANDON_TIMEOUT:
|
||||
raise Exception("Waited too long for machine %s" % machine.id)
|
||||
else:
|
||||
if time.time() - machine.state_time >= ABANDON_TIMEOUT:
|
||||
raise Exception("Waited too long for machine %s" % machine.id)
|
||||
|
||||
|
||||
def main():
|
||||
|
||||
Reference in New Issue
Block a user