mirror of
https://github.com/odoo/runbot.git
synced 2025-03-31 23:35:45 +07:00
[FIX] runbot: apply small fixes
This commit is contained in:
parent
d534f5a5e2
commit
c006bf953d
@ -372,7 +372,7 @@ class Runbot(models.AbstractModel):
|
|||||||
"""
|
"""
|
||||||
cleanup and optimize git repositories on the host
|
cleanup and optimize git repositories on the host
|
||||||
"""
|
"""
|
||||||
for repo in self.env['runbot.repo'].search():
|
for repo in self.env['runbot.repo'].search([]):
|
||||||
try:
|
try:
|
||||||
repo._git(['gc', '--prune=all', '--quiet'])
|
repo._git(['gc', '--prune=all', '--quiet'])
|
||||||
except CalledProcessError as e:
|
except CalledProcessError as e:
|
||||||
|
@ -11,7 +11,10 @@ class LeaderClient(RunbotClient): # Conductor, Director, Main, Maestro, Lead
|
|||||||
super().__init__(env)
|
super().__init__(env)
|
||||||
|
|
||||||
def on_start(self):
|
def on_start(self):
|
||||||
self.env['runbot.repo'].search([('mode', '!=', 'disabled')])._update(force=True)
|
_logger.info('Updating all repos')
|
||||||
|
for repo in self.env['runbot.repo'].search([('mode', '!=', 'disabled')]):
|
||||||
|
repo._update(force=True)
|
||||||
|
_logger.info('update finished')
|
||||||
|
|
||||||
def loop_turn(self):
|
def loop_turn(self):
|
||||||
if self.count == 0:
|
if self.count == 0:
|
||||||
|
Loading…
Reference in New Issue
Block a user