mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: allow to disable host fetch on start
This commit is contained in:
parent
ea490bffab
commit
e3c1cc4545
@ -16,8 +16,9 @@ class BuilderClient(RunbotClient):
|
|||||||
monitoring_thread = threading.Thread(target=docker_monitoring_loop, args=(builds_path,), daemon=True)
|
monitoring_thread = threading.Thread(target=docker_monitoring_loop, args=(builds_path,), daemon=True)
|
||||||
monitoring_thread.start()
|
monitoring_thread.start()
|
||||||
|
|
||||||
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
if not self.env['ir.config_parameter'].sudo().get_param('disable_fetch_on_start'):
|
||||||
repo._update(force=True)
|
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
||||||
|
repo._update(force=True)
|
||||||
|
|
||||||
def loop_turn(self):
|
def loop_turn(self):
|
||||||
if self.count == 1: # cleanup at second iteration
|
if self.count == 1: # cleanup at second iteration
|
||||||
|
Loading…
Reference in New Issue
Block a user