Skip to content

Commit

Permalink
Fix api instabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
zteeed committed Feb 27, 2023
1 parent d73a8e9 commit c7ccbaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def update_number_rootme_challenges() -> None:

@tl.job(interval=timedelta(days=1))
def update_number_rootme_users() -> None:
app.api.update_number_rootme_challenges()
app.api.update_number_rootme_users()


def start_tl():
Expand Down
2 changes: 1 addition & 1 deletion src/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def __init__(self):
retry = Retry(
total=10,
backoff_factor=1,
status_forcelist=[429],
status_forcelist=[429, 500, 502, 503, 504],
)
adapter = HTTPAdapter(max_retries=retry, pool_maxsize=100, pool_block=True)
session.mount('http://', adapter)
Expand Down

0 comments on commit c7ccbaa

Please sign in to comment.