Closed
Bug 1840453
Opened 3 years ago
Closed 3 years ago
Retry when the API is unavailable
Categories
(Firefox Graveyard :: Shopping, task, P2)
Firefox Graveyard
Shopping
Tracking
(firefox117 fixed)
RESOLVED
FIXED
117 Branch
| Tracking | Status | |
|---|---|---|
| firefox117 | --- | fixed |
People
(Reporter: fchasen, Assigned: fchasen)
References
Details
(Whiteboard: [fidefe-shopping])
Attachments
(1 file)
Update the API client to automatically retry when the API is unreachable (and we are online) or returns any 5XX error code.
This should probably be ~3 try, with an exponential back off?
Updated•3 years ago
|
Updated•3 years ago
|
Severity: -- → S3
Priority: -- → P2
| Assignee | ||
Comment 1•3 years ago
|
||
Will also need to track request state with this to prevent from calling multiple times.
| Assignee | ||
Updated•3 years ago
|
Assignee: nobody → fchasen
Status: NEW → ASSIGNED
| Assignee | ||
Comment 2•3 years ago
|
||
- ShoppingProduct API client will retry 3 times when the API returns a 500 error
- Exponentially increasing back off wait with each retry
- Added some random jitter to prevent all request from retrying at the same time
- Added tests for 400 errors returned by API
- Made request method public so it can be tested and used directly
Pushed by fchasen@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/b59d0cee3f2d
Retry Shopping API after 500 errors r=shopping-reviewers,jhirsch,Gijs
Comment 4•3 years ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
status-firefox117:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 117 Branch
Updated•1 year ago
|
Product: Firefox → Firefox Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•