mirror of
https://github.com/odoo/runbot.git
synced 2025-03-15 23:45:44 +07:00
[IMP] runbot: faster fetch
Use 2 jobs to fetch multiple origin at the same time.
This commit is contained in:
parent
7411bd5755
commit
bc8c2a4853
@ -710,7 +710,7 @@ class Repo(models.Model):
|
|||||||
while not success and try_count < 5:
|
while not success and try_count < 5:
|
||||||
time.sleep(delay)
|
time.sleep(delay)
|
||||||
try:
|
try:
|
||||||
self._git(['fetch', '-p', '--all', ])
|
self._git(['fetch', '-p', '--all', '-j2']) # j2 to use two job and fetch multiple origin at the same time
|
||||||
success = True
|
success = True
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
try_count += 1
|
try_count += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user