mirror of
https://github.com/odoo/runbot.git
synced 2025-04-01 15:55:45 +07:00
[IMP] runbot: allow to disable fetch on start
This commit is contained in:
parent
7bbd1271c6
commit
b6bc0e3911
@ -16,6 +16,7 @@ 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()
|
||||||
|
|
||||||
|
if self.env['ir.config_parameter'].sudo().get_param('runbot.runbot_do_fetch'):
|
||||||
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
||||||
repo._update(force=True)
|
repo._update(force=True)
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@ class LeaderClient(RunbotClient): # Conductor, Director, Main, Maestro, Lead
|
|||||||
super().__init__(env)
|
super().__init__(env)
|
||||||
|
|
||||||
def on_start(self):
|
def on_start(self):
|
||||||
|
if self.env['ir.config_parameter'].sudo().get_param('runbot.runbot_do_fetch'):
|
||||||
_logger.info('Updating all repos')
|
_logger.info('Updating all repos')
|
||||||
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
||||||
repo._update(force=True)
|
repo._update(force=True)
|
||||||
|
Loading…
Reference in New Issue
Block a user