mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[FIX] runbot: remove typo that prevent kill when timeout
This commit is contained in:
parent
cff0133e1a
commit
bb35b1cc9d
@ -375,7 +375,7 @@ class runbot_build(models.Model):
|
|||||||
# kill if overpassed
|
# kill if overpassed
|
||||||
timeout = (build.branch_id.job_timeout or default_timeout) * 60 * ( build.coverage and 1.5 or 1)
|
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:
|
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.write({'job_end': now()})
|
||||||
build._kill(result='killed')
|
build._kill(result='killed')
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user