mirror of
https://github.com/odoo/runbot.git
synced 2025-03-16 16:05:42 +07:00
[FIX] runbot: properly call _log when time exceeds
This commit is contained in:
parent
5761fd1694
commit
45516f9d33
@ -528,7 +528,7 @@ class runbot_build(models.Model):
|
||||
if docker_is_running(build._get_docker_name()):
|
||||
timeout = min(build.active_step.cpu_limit, int(icp.get_param('runbot.runbot_timeout', default=10000)))
|
||||
if build.local_state != 'running' and build.job_time > timeout:
|
||||
build._log('_schedule', '%s time exceeded (%ss)', build.active_step.name if build.active_step else "?", build.job_time)
|
||||
build._log('_schedule', '%s time exceeded (%ss)' % (build.active_step.name if build.active_step else "?", build.job_time))
|
||||
build.write({'job_end': now()})
|
||||
build._kill(result='killed')
|
||||
continue
|
||||
|
Loading…
Reference in New Issue
Block a user