From e3c1cc454572673a0336545ab33c5b9299be2a82 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Tue, 4 Jul 2023 14:03:33 +0200 Subject: [PATCH] [IMP] runbot: allow to disable host fetch on start --- runbot_builder/builder.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/runbot_builder/builder.py b/runbot_builder/builder.py index 6745f6ad..c5c20af3 100755 --- a/runbot_builder/builder.py +++ b/runbot_builder/builder.py @@ -16,8 +16,9 @@ class BuilderClient(RunbotClient): monitoring_thread = threading.Thread(target=docker_monitoring_loop, args=(builds_path,), daemon=True) monitoring_thread.start() - for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]): - repo._update(force=True) + if not self.env['ir.config_parameter'].sudo().get_param('disable_fetch_on_start'): + for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]): + repo._update(force=True) def loop_turn(self): if self.count == 1: # cleanup at second iteration