Skip to content

Commit

Permalink
fixup! Jump through a bunch of hoops to limit the number of times we …
Browse files Browse the repository at this point in the history
…retry during tests
  • Loading branch information
tomrittervg committed Sep 10, 2024
1 parent 5a83c20 commit 6fb0299
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion components/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,9 @@ def decorate(func):
# Retry calling a function `times` times, sleeping between each tries, with an exponential backoff
# This is to be used on API calls, that are likely to fail

RETRY_TIMES=10
RETRY_TIMES = 10


def retry(_func=None, *, times=RETRY_TIMES, sleep_s=1, exp=2):
def decorator_retry(func):
@functools.wraps(func)
Expand Down

0 comments on commit 6fb0299

Please sign in to comment.