Commit Graph

95 Commits

Author SHA1 Message Date
Ray Holder 1d5699348d Merge pull request #52 from RyPeck/python-3.5
Add Python 3.5
2016-06-06 23:02:12 -05:00
Ray Holder 3a435e8ba8 Merge pull request #37 from harlowja/allow-retry-on-exception-exception-tuple
Allow providing exception tuple for 'retry_on_exception' argument
2016-06-06 22:45:05 -05:00
Ray Holder 855db168d3 Merge pull request #40 from cyrusd/master
Callbacks for before/after attempts
2016-06-05 22:21:29 -05:00
Ryan Peck deaa38460a Add Python 3.5 2016-06-05 17:15:13 -04:00
Ray Holder 37b322221c Merge pull request #38 from harlowja/incrementing-wait-max
Add a upper bound on incrementing wait
2016-06-05 15:34:38 -05:00
Ray Holder ecef4c2d95 Merge pull request #36 from jd/jd/staticmethod
Declare a few methods static
2016-06-05 15:32:56 -05:00
Cyrus Durgin 6311fd3897 updated 2015-12-18 12:49:38 -08:00
cyrus durgin 6a55573d58 Adds two additional parameters to the Retrying() constructor:
_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.
2015-09-10 15:57:35 -07:00
Joshua Harlow 2a84101c9a Add a upper bound on incrementing wait 2015-06-23 18:22:53 -07:00
Joshua Harlow 919d6e0011 Allow providing exception tuple for 'retry_on_exception' argument
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.
2015-06-23 18:19:07 -07:00
Ray Holder da33537e08 bump version up to 1.3.4-dev, align badges in README.rst with a service that still works 2015-06-07 00:06:24 -05:00
Julien Danjou 918fc72fc1 Declare a few methods static
A few methods are actually static, declare them as such.
2015-06-01 17:38:25 +02:00
Ray Holder 3659c70b1f prepare for 1.3.3 release 2014-12-14 19:07:01 -06:00
Ray Holder 650688df3c update history for 1.3.3 release 2014-12-14 19:06:27 -06:00
Ray Holder c3b2d302cd add a few more contributors 2014-12-14 19:05:54 -06:00
Ray Holder 5cb2c24f30 Merge pull request #27 from herriojr/master
Adding in minimum version since anything lower doesn't work.
2014-12-14 18:42:26 -06:00
Jonathan Herriott 0a3eb6eae1 Adding in minimum version since anything lower doesn't work. 2014-11-19 11:29:31 -08:00
Ray Holder 2cd062edcb prepare for 1.3.2 release 2014-11-09 22:26:41 -06:00
Ray Holder 7dea034d80 remove six license boilerplate since we're not embedding it anymore 2014-11-09 22:26:15 -06:00
Ray Holder 394ea5b492 update HISTORY.rst for 1.3.2 2014-11-09 22:22:33 -06:00
Ray Holder 7a50d88ad1 Merge pull request #23 from harlowja/jitter
Allow a jitter value to be passed in
2014-11-09 21:13:02 -06:00
Ray Holder 6fa200573f adding Maxym Shalenyi to AUTHORS.rst 2014-11-09 20:52:22 -06:00
Ray Holder 8fd859896a Merge pull request #21 from harlowja/wraps
Ensure we wrap the decorated functions
2014-11-09 20:43:07 -06:00
Ray Holder ad35b7e240 fix up some some pep8 stuff 2014-11-09 20:24:34 -06:00
Ray Holder d51fd58129 bump version up to 1.3.2-dev 2014-11-09 20:12:49 -06:00
Joshua Harlow 01a2173532 Allow a jitter value to be passed in
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.
2014-10-29 19:21:13 -07:00
Joshua Harlow ee2ae2a9d3 Ensure we wrap the decorated functions
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.
2014-10-03 20:02:22 -07:00
Ray Holder cab083eb57 Merge pull request #19 from emonty/master
Add requirements.txt to MANFEST.in
2014-10-01 00:49:02 -04:00
Monty Taylor 445633f922 Add requirements.txt to MANFEST.in
Without this, pip installs of retrying all fail due to requirements.txt
being missing in the tarball but required by setup.py.
2014-09-30 19:42:32 -07:00
Ray Holder 36a09fa4da prepare for 1.3.0 release 2014-09-30 19:50:23 -05:00
Ray Holder 3fe643afa7 update AUTHORS.rst to add contributors 2014-09-30 19:48:39 -05:00
Ray Holder 8993298992 Merge pull request #16 from hguemar/master
Replaced bundled code with using six
2014-09-30 20:43:58 -04:00
Haïkel Guémar 062c5ba16b Replaced bundled code with using six 2014-09-05 15:12:45 +02:00
Ray Holder 30b068f26a update AUTHORS.rst 2014-08-25 19:46:15 -05:00
Ray Holder dcc355bc4e bump version up to 1.2.4-dev 2014-08-25 19:44:05 -05:00
Ray Holder fc88833dd7 Merge tag 'v1.2.3'
Release 1.2.3
2014-08-25 19:38:17 -05:00
Ray Holder ce99e6ccd2 Merge pull request #15 from svisser/patch-1
Ensure file handles are closed using with statement
2014-08-25 19:20:16 -05:00
Simeon Visser 6504edc596 Ensure file handles are closed using with statement 2014-08-26 01:09:37 +01:00
Ray Holder d59d44624a prepare for 1.2.3 release 2014-08-25 18:44:14 -05:00
Ray Holder 6b78d76568 add Daniel Nephin to AUTHORS.rst 2014-08-25 18:22:20 -05:00
Ray Holder 709c1770aa Merge pull request #14 from dnephin/custom_wait_and_stop
Support custom wait and stop functions
2014-08-25 18:12:33 -05:00
Daniel Nephin 8b73aff04e Support custom wait and stop functions. 2014-08-22 07:31:21 -07:00
Ray Holder 6d8ef5bd03 bump version to 1.2.3-dev, add 3.3/3.4 classifiers 2014-06-26 13:39:04 -05:00
Ray Holder 9a6be782d6 add Saul Shanabrook to AUTHORS.rst 2014-06-26 13:35:09 -05:00
Ray Holder 8cd01a05ba Merge pull request #13 from saulshanabrook/patch-1
Add python 3.3 and 3.4 support
2014-06-26 13:32:46 -05:00
Saul Shanabrook 9e60bac40a Add python 3.3 and 3.4 support 2014-06-26 12:46:21 -04:00
Ray Holder 52ebba0af2 prepare for 1.2.2 release 2014-06-20 02:30:58 -05:00
Ray Holder cc5cc905ea update HISTORY.rst for 1.2.2 release 2014-06-20 02:24:55 -05:00
Ray Holder 8ca5b41bca add comments from rdooley, add comment around stop behavior 2014-06-20 02:16:50 -05:00
Ray Holder e5fc513f5d Merge pull request #10 from simondolle/bugfix/#8_raise_retry_error_on_failure
Bugfix/#8 raise retry error on failure
2014-06-20 01:43:48 -05:00