Set a max on timeout
Change-Id: Id981eebe0d5b3c64396c55d8868421cafc232c06
This commit is contained in:
parent
8b506beb4c
commit
5b59c7aa4b
|
@ -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…
Reference in New Issue