Skip to content

Commit

Permalink
Retry-After is provided by 429 (too many) so retry on that too
Browse files Browse the repository at this point in the history
  • Loading branch information
yarikoptic committed Dec 20, 2024
1 parent 4cc65c2 commit 88f3901
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dandi/consts.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def urls(self) -> Iterator[str]:
"linc-staging",
"https://staging.lincbrain.org",
"https://staging-api.lincbrain.org/api",
)
),
}
# to map back url: name
known_instances_rev = {
Expand All @@ -160,7 +160,7 @@ def urls(self) -> Iterator[str]:

#: HTTP response status codes that should always be retried (until we run out
#: of retries)
RETRY_STATUSES = (500, 502, 503, 504)
RETRY_STATUSES = (429, 500, 502, 503, 504)

VIDEO_FILE_EXTENSIONS = [".mp4", ".avi", ".wmv", ".mov", ".flv", ".mkv"]
VIDEO_FILE_MODULES = ["processing", "acquisition"]
Expand Down

0 comments on commit 88f3901

Please sign in to comment.