Set a max on timeout

Change-Id: Id981eebe0d5b3c64396c55d8868421cafc232c06
This commit is contained in:
Monty Taylor 2017-09-26 08:06:25 -05:00
parent 8b506beb4c
commit 5b59c7aa4b
No known key found for this signature in database
GPG Key ID: 7BAE94BC7141A594
1 changed files with 3 additions and 0 deletions

View File

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