Skip to content

Commit 53e16c9

Browse files
fix: retry downloads of webgraphs, fixes #19
1 parent 8a1a3e5 commit 53e16c9

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/script/webgraph_ranking/graph_explore_download_webgraph.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,14 +66,16 @@ function download_file() {
6666

6767
if $USING_CURL; then
6868

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

7172
elif $USING_WGET; then
7273

7374
if [ "$(dirname "$FILE")" == "." ]; then
74-
wget --continue --timestamping "$URL"
75+
wget --continue --timestamping --tries=0 --retry-on-http-error=503 --waitretry=1 "$URL"
7576
else
76-
wget --continue --timestamping --directory-prefix="$(dirname "$FILE")" "$URL"
77+
wget --continue --timestamping --directory-prefix="$(dirname "$FILE")" \
78+
--tries=0 --retry-on-http-error=503 --waitretry=1 "$URL"
7779
fi
7880

7981
fi

0 commit comments

Comments
 (0)