Skip to main content

An execution policy for Pyramid that supports retrying requests after certain failure exceptions.

Project description

https://img.shields.io/pypi/v/pyramid_retry.svg https://img.shields.io/travis/Pylons/pyramid_retry/master.svg Documentation Status

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 https://docs.pylonsproject.org/projects/pyramid-retry/en/latest/ or docs/index.rst in this distribution for detailed documentation.

2.1.1 (2020-03-21)

2.1 (2019-09-30)

2.0 (2019-06-06)

  • No longer call invoke_exception_view if the policy catches an exception. If on the last attempt or non-retryable then the exception will now bubble out of the app and into WSGI middleware. See https://github.com/Pylons/pyramid_retry/pull/17

1.0 (2018-10-18)

0.5 (2017-06-19)

0.4 (2017-06-12)

0.3 (2017-04-10)

0.2 (2017-03-02)

  • 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.

0.1 (2017-03-01)

  • Initial release.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyramid_retry-2.1.1.tar.gz (23.3 kB view details)

Uploaded Source

Built Distribution

pyramid_retry-2.1.1-py2.py3-none-any.whl (6.6 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file pyramid_retry-2.1.1.tar.gz.

File metadata

  • Download URL: pyramid_retry-2.1.1.tar.gz
  • Upload date:
  • Size: 23.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for pyramid_retry-2.1.1.tar.gz
Algorithm Hash digest
SHA256 baa8276ae68babad09e5f2f94efc4f7421f3b8fb526151df522052f8cd3ec0c9
MD5 2cdad260f938b8b9fc2a5faf4a91736a
BLAKE2b-256 bf022a084e7bc8ca3c50b67c6a6d58598c5771d93399e9ff2aadf6aa29c1adcc

See more details on using hashes here.

File details

Details for the file pyramid_retry-2.1.1-py2.py3-none-any.whl.

File metadata

  • Download URL: pyramid_retry-2.1.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4

File hashes

Hashes for pyramid_retry-2.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b5129a60eb9d7409234ea52839006426d2ae887b4a1f0530c75ec336cabf2476
MD5 74b89ff442c084ad299c7e0dc695587e
BLAKE2b-256 b7a7b04390f36dcd0b117e023e4f980d6173da893b3c27f8b12ecd5dcc6fdb95

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page