Skip to content

Commit

Permalink
fix: retry downloads of webgraphs, fixes #19
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-nagel committed Aug 1, 2024
1 parent 90b8f08 commit cd718a4
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,16 @@ function download_file() {

if $USING_CURL; then

curl --silent --remote-time -o "$FILE" --time-cond "$FILE" --continue-at - "$URL"
curl --silent --remote-time -o "$FILE" --time-cond "$FILE" --continue-at - \
--retry 1000 --retry-all-errors --retry-delay 1 "$URL"

elif $USING_WGET; then

if [ "$(dirname "$FILE")" == "." ]; then
wget --continue --timestamping "$URL"
wget --continue --timestamping --tries=0 --retry-on-http-error=503 --waitretry=1 "$URL"
else
wget --continue --timestamping --directory-prefix="$(dirname "$FILE")" "$URL"
wget --continue --timestamping --directory-prefix="$(dirname "$FILE")" \
--tries=0 --retry-on-http-error=503 --waitretry=1 "$URL"
fi

fi
Expand Down

0 comments on commit cd718a4

Please sign in to comment.