Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
limit parallel builds to 10
Browse files Browse the repository at this point in the history
  • Loading branch information
larroy committed Jan 10, 2019
1 parent 591a2ad commit 02cbeb2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ci/docker_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
DOCKERHUB_RETRY_SECONDS = 5
DOCKER_CACHE_NUM_RETRIES = 3
DOCKER_CACHE_TIMEOUT_MINS = 15
PARALLEL_BUILDS = 10


def build_save_containers(platforms, registry, load_cache) -> int:
Expand All @@ -52,7 +53,7 @@ def build_save_containers(platforms, registry, load_cache) -> int:
if len(platforms) == 0:
return 0

platform_results = Parallel(n_jobs=len(platforms), backend="multiprocessing")(
platform_results = Parallel(n_jobs=PARALLEL_BUILDS, backend="multiprocessing")(
delayed(_build_save_container)(platform, registry, load_cache)
for platform in platforms)

Expand Down

0 comments on commit 02cbeb2

Please sign in to comment.