Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

Project description 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 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

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.

Files for pyramid-retry, version 2.1.1
Filename, size File type Python version Upload date Hashes
Filename, size pyramid_retry-2.1.1-py2.py3-none-any.whl (6.6 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size pyramid_retry-2.1.1.tar.gz (23.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page