An execution policy for Pyramid that supports retrying requests after certain failure exceptions.
pyramid_retry is an execution policy for Pyramid that wraps requests and can retry them a configurable number of times under certain “retryable” error conditions before indicating a failure to the client.
See http://docs.pylonsproject.org/projects/pyramid-retry/en/latest/ or docs/index.rst in this distribution for detailed documentation.
- Support a retry.activate_hook setting which can return a per-request number of retries. See https://github.com/Pylons/pyramid_retry/pull/4
- Configuration is deferred so that settings may be changed after config.include('pyramid_retry') is invoked until the configurator is committed. See https://github.com/Pylons/pyramid_retry/pull/4
- Rename the view predicates to last_retry_attempt and retryable_error. See https://github.com/Pylons/pyramid_retry/pull/3
- Rename pyramid_retry.is_exc_retryable to pyramid_retry.is_error_retryable. See https://github.com/Pylons/pyramid_retry/pull/3
- Change the default attempts to 3 instead of 1.
- Rename the view predicates to is_last_attempt and is_exc_retryable.
- Drop support for the tm.attempts setting.
- The retry.attempts setting is always set now in registry.settings['retry.attempts'] so that apps can inspect it.
- Initial release.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
|Filename, size & hash SHA256 hash help||File type||Python version||Upload date|
|pyramid_retry-0.3-py2.py3-none-any.whl (7.1 kB) Copy SHA256 hash SHA256||Wheel||py2.py3|
|pyramid_retry-0.3.tar.gz (18.1 kB) Copy SHA256 hash SHA256||Source||None|