You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
timer.start()
while True:
try:
# do stuff
except AtlasApiError as exc:
if exc.error_code not in [List of error codes to retry on]:
raise
sleep(...)
continue
else:
# we did what we needed to do, exit
break
finally:
if timer.elapsed > MAX_WAIT:
raise Exception('unable to do stuff')
We should create a concrete subclass of PollerBase
The text was updated successfully, but these errors were encountered:
prashantmital
changed the title
Implement Pollers that retry endpoints when specific errors are seen
Implement Poller that retries endpoints when encountering some pre-specified Atlas API errors
Mar 11, 2021
In several places we are doing something like:
We should create a concrete subclass of
PollerBase
drivers-atlas-testing/astrolabe/poller.py
Line 27 in 5bf2456
The text was updated successfully, but these errors were encountered: