Skip to main content

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.

Source Distribution

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

Uploaded source

Built Distribution

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

Uploaded py2 py3

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