File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -85,6 +85,10 @@ development command line options.
85
85
function will patch ` requests ` to log the results of calls to
86
86
` requests.utils.super_len() `
87
87
88
+ - ` DANDI_DOWNLOAD_AGGRESSIVE_RETRY ` -- When set, would make ` download() ` retry
89
+ very aggressively - it would keep trying if at least some bytes are downloaded
90
+ on each attempt. Typically is not needed and could be a sign of network issues.
91
+
88
92
## Sourcegraph
89
93
90
94
The [ Sourcegraph] ( https://sourcegraph.com ) browser extension can be used to
Original file line number Diff line number Diff line change @@ -750,7 +750,7 @@ def _download_file(
750
750
# errors (among others) in addition to HTTP status errors.
751
751
except requests .RequestException as exc :
752
752
sleep_amount = random .random () * 5 * attempt
753
- if os .environ .get ("DANDI_DEVEL_AGGRESSIVE_RETRY " ):
753
+ if os .environ .get ("DANDI_DOWNLOAD_AGGRESSIVE_RETRY " ):
754
754
# in such a case if we downloaded a little more --
755
755
# consider it a successful attempt
756
756
if downloaded_in_attempt > 0 :
You can’t perform that action at this time.
0 commit comments