Skip to content

Commit

Permalink
random delay
Browse files Browse the repository at this point in the history
  • Loading branch information
Azathothas committed Jan 25, 2025
1 parent 0c3123b commit b1e85dd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/runner/builder.sh
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,8 @@ sbuild_builder()
source "${OCWD}/ENVPATH" ; SBUILD_PKGS=($SBUILD_PKGS)
if [[ "${SBUILD_SUCCESSFUL}" == "YES" ]]; then
sanitize_logs
printf '%s\n' "${SBUILD_PKGS[@]}" | xargs -P "$(($(nproc)+1))" -I "{}" bash -c 'upload_to_ghcr "$@"' _ "{}"
#2000req/min
printf '%s\n' "${SBUILD_PKGS[@]}" | xargs -P "$(($(nproc)+1))" -I "{}" bash -c 'upload_to_ghcr "$@" ; sleep "1.$(((RANDOM % 900) + 100))"' _ "{}"
source "${OCWD}/ENVPATH"
if [[ "${PUSH_SUCCESSFUL}" != "YES" ]]; then
echo -e "\n[✗] FATAL: Failed to Push Artifacts ==> [${GHCRPKG}]"
Expand Down

0 comments on commit b1e85dd

Please sign in to comment.