Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exponential backoff isn't actually exponential at all #20

Open
reillysiemens opened this issue Jan 17, 2018 · 0 comments
Open

Exponential backoff isn't actually exponential at all #20

reillysiemens opened this issue Jan 17, 2018 · 0 comments
Labels

Comments

@reillysiemens
Copy link
Owner

The exponential backoff is computed by

backoff = 0.5
# Do some things...
time.sleep((backoff ** 2) / 4)

and backoff is never changed! Therefore, on each retry we just sleep for 0.0625s, which is not great if we're experiencing connection issues...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant