Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

backoff even longer #466

Merged
merged 1 commit into from
May 14, 2018
Merged

backoff even longer #466

merged 1 commit into from
May 14, 2018

Conversation

peterbe
Copy link
Contributor

@peterbe peterbe commented May 14, 2018

This is what 9 attempts looks like if you simulate and have the on_backoff handler enabled:

▶ time python dummy.py
Backing off 0.4 seconds afters 1 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 1.4 seconds afters 2 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 2.7 seconds afters 3 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 5.4 seconds afters 4 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 6.3 seconds afters 5 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 12.8 seconds afters 6 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 36.7 seconds afters 7 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Backing off 85.5 seconds afters 8 tries calling function <function fetch at 0x10f172510> with args ('http://busted.example.com',) and kwargs {}
Traceback (most recent call last):
...
python dummy.py  0.24s user 0.06s system 0% cpu 2:31.49 total

2m31 seconds with 9 failed attempts.

@peterbe peterbe merged commit 75ed152 into mozilla-services:master May 14, 2018
@peterbe peterbe deleted the backoff-even-longer branch May 14, 2018 20:35
@peterbe peterbe mentioned this pull request May 15, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant