Skip to content

Commit

Permalink
retry hotfix
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Milarsky <[email protected]>
  • Loading branch information
IsaacMilarky committed Nov 7, 2024
1 parent ede2912 commit 4a9be7a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion augur/application/db/models/augur_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,9 +938,12 @@ def is_valid_github_repo(gh_session, url: str) -> bool:
mktime(gmtime(time()))
)
wait_until_time = localtime(wait_until)
logger.error(f"rate limited fetching {url}z")
logger.error(f"rate limited fetching {url}")
logger.error(f"sleeping until {wait_until_time.tm_hour}:{wait_until_time.tm_min} ({wait_in_seconds} seconds)")
sleep(wait_in_seconds)
attempts+=1
continue

# if there was an error return False
if "message" in data.keys():

Expand Down

0 comments on commit 4a9be7a

Please sign in to comment.