Skip to content

Commit

Permalink
torngit github: retry on 502/503/504 (#233)
Browse files Browse the repository at this point in the history
  • Loading branch information
matt-codecov authored Jun 4, 2024
1 parent 60c792b commit 5da2084
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions shared/torngit/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -759,7 +759,7 @@ async def make_http_call(
body=None,
headers=None,
token_to_use=None,
statuses_to_retry=None,
statuses_to_retry=[502, 503, 504],
**args,
) -> Response:
_headers = {
Expand Down Expand Up @@ -2361,7 +2361,7 @@ async def is_student(self):
url = self.count_and_get_url_template(
url_name="is_student"
).substitute()
res = await self.api(client, "get", url)
res = await self.api(client, "get", url, statuses_to_retry=[])
return res["student"]
except TorngitServerUnreachableError:
log.warning("Timeout on Github Education API for is_student")
Expand Down

0 comments on commit 5da2084

Please sign in to comment.