[FIX] runbot: remove typo that prevent kill when timeout

This commit is contained in:
Christophe Monniez 2019-05-14 11:53:28 +02:00
parent cff0133e1a
commit bb35b1cc9d

View File

@ -375,7 +375,7 @@ class runbot_build(models.Model):
# kill if overpassed
timeout = (build.branch_id.job_timeout or default_timeout) * 60 * ( build.coverage and 1.5 or 1)
if build.job != jobs[-1] and build.job_time > timeout:
build._log('schedule', '%s time exceeded (%ss)', build.job, build.job_time)
build._log('schedule', '%s time exceeded (%ss)' % (build.job, build.job_time))
build.write({'job_end': now()})
build._kill(result='killed')
else: