From 38944a9c723e5223b5f313d7527f98dacae9f162 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Sat, 1 Feb 2020 20:22:42 +0900 Subject: [PATCH] [Release] Retry binary download on transient error It makes binary verification more robust. --- dev/release/download_rc_binaries.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 dev/release/download_rc_binaries.py diff --git a/dev/release/download_rc_binaries.py b/dev/release/download_rc_binaries.py old mode 100644 new mode 100755 index b2dfc867bc0..da66e483d37 --- a/dev/release/download_rc_binaries.py +++ b/dev/release/download_rc_binaries.py @@ -112,7 +112,7 @@ def _download_file(self, dest, info): bintray_abspath = os.path.join(BINTRAY_DL_ROOT, self.repo, relpath) cmd = [ - 'curl', '--fail', '--location', + 'curl', '--fail', '--location', '--retry', '5', '--output', dest_path, bintray_abspath ] proc = subprocess.Popen(cmd, stdout=subprocess.PIPE,