Set a max on timeout

Change-Id: Id981eebe0d5b3c64396c55d8868421cafc232c06
changes/37/507537/3
Monty Taylor 5 years ago
parent 8b506beb4c
commit 5b59c7aa4b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
  1. 3
      zuul/cmd/migrate.py

@ -548,6 +548,9 @@ class Job:
timeout = build_timeout.get('timeout')
if timeout is not None:
timeout = int(timeout) * 60
# NOTE: This should be read from tenant config
if timeout > 10800:
timeout = 10800
return timeout

Loading…
Cancel
Save