From bc8c2a4853e400dc8df64b34836d32067b2d21b3 Mon Sep 17 00:00:00 2001 From: Xavier-Do Date: Thu, 5 Sep 2024 13:23:30 +0200 Subject: [PATCH] [IMP] runbot: faster fetch Use 2 jobs to fetch multiple origin at the same time. --- runbot/models/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbot/models/repo.py b/runbot/models/repo.py index 781b9518..87bf3e8c 100644 --- a/runbot/models/repo.py +++ b/runbot/models/repo.py @@ -710,7 +710,7 @@ class Repo(models.Model): while not success and try_count < 5: time.sleep(delay) 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 except subprocess.CalledProcessError as e: try_count += 1