Skip to content

Commit

Permalink
Merge pull request #477 from ZeusWPI/scraper-requests-tries
Browse files Browse the repository at this point in the history
Set amount of tries for scraper requests to 5
  • Loading branch information
smessie authored Nov 30, 2023
2 parents 8c09c5a + 618f9d1 commit 0f27f85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/scraper/backoff.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

TIMEOUT = 5 # Time before a request times out
BACKOFF = 0.25 # Try 0.0s, 0.25s, 0.5s, 1s, 2s between requests
AMOUNT = 1 # Amount of request to make before giving up
AMOUNT = 5 # Amount of request to make before giving up


class TimeoutHTTPAdapter(requests.adapters.HTTPAdapter):
Expand Down

0 comments on commit 0f27f85

Please sign in to comment.