Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #37 from harlowja/allow-retry-on-exception-exception-tuple | Ray Holder | 2016-06-06 | 1 | -1/+12 |
|\ | | | | | Allow providing exception tuple for 'retry_on_exception' argument | ||||
| * | Allow providing exception tuple for 'retry_on_exception' argument | Joshua Harlow | 2015-06-23 | 1 | -1/+12 |
| | | | | | | | | | | | | | | It seems like a common pattern to have a function that is used that just checks if the exception that is thrown is of a given type so to avoid duplicating this pattern by all retry library users just natively provide support for it. | ||||
* | | Merge pull request #40 from cyrusd/master | Ray Holder | 2016-06-05 | 1 | -1/+11 |
|\ \ | | | | | | | Callbacks for before/after attempts | ||||
| * | | Adds two additional parameters to the Retrying() constructor: | cyrus durgin | 2015-09-10 | 1 | -1/+11 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | _before_attempts _after_attempts Each of these should be a reference to a function that takes a single argument, attempt_number. _before_attempts will be called before each attempt is run; _after_attempts is run after any *unsuccessful* attempt. Handy for logging status messages, etc in between attempts. | ||||
* | | Merge pull request #38 from harlowja/incrementing-wait-max | Ray Holder | 2016-06-05 | 1 | -0/+4 |
|\ \ | | | | | | | Add a upper bound on incrementing wait | ||||
| * | | Add a upper bound on incrementing wait | Joshua Harlow | 2015-06-23 | 1 | -0/+4 |
| |/ | |||||
* | | Declare a few methods static | Julien Danjou | 2015-06-01 | 1 | -3/+6 |
|/ | | | | A few methods are actually static, declare them as such. | ||||
* | remove six license boilerplate since we're not embedding it anymore | Ray Holder | 2014-11-09 | 1 | -23/+0 |
| | |||||
* | Merge pull request #23 from harlowja/jitter | Ray Holder | 2014-11-09 | 1 | -1/+6 |
|\ | | | | | Allow a jitter value to be passed in | ||||
| * | Allow a jitter value to be passed in | Joshua Harlow | 2014-10-29 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | | | | | | To avoid the thundering herd problem when retrying is triggered at exactly the same moment by many entities allow for passing in a jitter maximum value which will be used to randomly alter the amount of time slept by each retrying object user; this helps randomize the thundering herd and makes it possible to reduce the issue. | ||||
* | | Ensure we wrap the decorated functions | Joshua Harlow | 2014-10-03 | 1 | -0/+4 |
|/ | | | | | | | To avoid losing the original functions docs, name and other attributes ensure that this correctly uses six.wraps (which uses functools.wraps internally) to wrap the decorated function. | ||||
* | Replaced bundled code with using six | Haïkel Guémar | 2014-09-05 | 1 | -26/+2 |
| | |||||
* | Support custom wait and stop functions. | Daniel Nephin | 2014-08-22 | 1 | -3/+11 |
| | |||||
* | add comments from rdooley, add comment around stop behavior | Ray Holder | 2014-06-20 | 1 | -1/+7 |
| | |||||
* | If possible, raise the last exception when stopping | Simon Dollé | 2014-06-15 | 1 | -1/+4 |
| | | | | | | | When we stop retrying because of recurring exceptions, we expect the decorator to raise the last exception. (if wrap_exception==False) This commit fixes issue #8. | ||||
* | Fix AttributeError when explicitly specifying wait type, and add appropriate ↵ | Alex Kuang | 2014-05-05 | 1 | -1/+1 |
| | | | | regression tests. (fixes #4) | ||||
* | remove need for specification of stop/wait type | Derek Wilson | 2014-05-02 | 1 | -35/+62 |
| | | | | because it can be inferred from the args passed in | ||||
* | add even moar Python 3.x compatibility hacks from the six project, update ↵ | Ray Holder | 2014-03-31 | 1 | -2/+51 |
| | | | | license | ||||
* | propagate complete tracebacks such that they show up in nested stack frames, ↵ | Ray Holder | 2014-03-30 | 1 | -5/+12 |
| | | | | adjust api and tests #1 | ||||
* | fixed a bug where classes not extending from the Python exception hierarchy ↵ | Ray Holder | 2013-03-20 | 1 | -1/+3 |
| | | | | could slip through, preparing for 1.0.1 release | ||||
* | Python 3.2 compatibility fix, since we don't have sys.maxint anymore... | Ray Holder | 2013-01-22 | 1 | -2/+4 |
| | |||||
* | add configurable support for wrapping any raised Exception in a RetryError ↵ | Ray Holder | 2013-01-22 | 1 | -14/+42 |
| | | | | instead of just raising it directly, add a few more comments | ||||
* | default to retry on any exception, handle @retry and @retry() behavior | Ray Holder | 2013-01-21 | 1 | -26/+27 |
| | |||||
* | clean up some TODO's and comments | Ray Holder | 2013-01-19 | 1 | -16/+7 |
| | |||||
* | adding first stable implementation, reasonable passing test coverage | Ray Holder | 2013-01-19 | 1 | -0/+181 |