Closed
Bug 997299
Opened 11 years ago
Closed 11 years ago
Create retry() context manager
Categories
(Release Engineering :: General, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: rail)
Details
Attachments
(1 file)
4.35 KB,
patch
|
bhearsum
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
so we can use it like this:
import requests
from util.retry import retry_ctx
with retry_ctx(requests.get, attempts=5, sleeptime=60) as get:
get("http://example.com")
Assignee | ||
Comment 1•11 years ago
|
||
Attachment #8407670 -
Flags: review?(bhearsum)
Comment 2•11 years ago
|
||
Comment on attachment 8407670 [details] [diff] [review]
retry-tools-1.diff
Review of attachment 8407670 [details] [diff] [review]:
-----------------------------------------------------------------
This is wonderful.
Attachment #8407670 -
Flags: review?(bhearsum) → review+
Assignee | ||
Comment 3•11 years ago
|
||
Comment on attachment 8407670 [details] [diff] [review]
retry-tools-1.diff
https://hg.mozilla.org/build/tools/rev/ee6a67056116
Attachment #8407670 -
Flags: checked-in+
Assignee | ||
Updated•11 years ago
|
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Updated•7 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•