nix: limit jobs used by parallel to update Gradle

Otherwise on some devices with with good connecitons rate limiting might
cause failures to fetch POMs or JARs and in result failing the whole update.

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2022-05-18 10:12:22 +02:00
parent 372942ba8a
commit 43f7aaf8b1
No known key found for this signature in database
GPG Key ID: 09AA5403E54D9931
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ function gen_deps_json() {
# Format URLs into a Nix consumable file. # Format URLs into a Nix consumable file.
URLS=$(cat ${DEPS_URLS}) URLS=$(cat ${DEPS_URLS})
parallel --will-cite --keep-order \ # Avoid rate limiting by using 4 of the available threads.
parallel --will-cite --keep-order --jobs 4 \
"${CUR_DIR}/url2json.sh" \ "${CUR_DIR}/url2json.sh" \
::: ${URLS} \ ::: ${URLS} \
>> ${DEPS_JSON} >> ${DEPS_JSON}