mirror of
https://github.com/odoo/runbot.git
synced 2025-03-27 13:25:47 +07:00
[IMP] runbot: faster fetch
Use 2 jobs to fetch multiple origin at the same time.
This commit is contained in:
parent
9660cf6517
commit
f99b1d6c94
@ -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