{"categories":[{"label":"Application Frameworks","url":"https://skillfed.io/packages/category/software-development-libraries-application-frameworks/6"}],"enrichment":{"capability":"pyramid_retry wraps Pyramid requests with configurable retry logic, automatically retrying requests under specified error conditions before reporting failure to the client.","skillfed_tags":["pyramid-plugin","fault-tolerance","wsgi"],"use_cases":["Automatically retry requests that fail due to transient database connection issues or temporary service unavailability.","Handle client disconnects gracefully by ensuring threadlocals are cleaned up even when retries fail.","Implement per-request retry limits using a custom activate_hook to vary retry behavior based on request properties.","Subscribe to IBeforeRetry events to reset request state or clean up resources before each retry attempt.","Mark specific exceptions as retryable using mark_error_retryable so the policy knows which errors warrant a retry."],"what_it_does":"pyramid_retry is an execution policy for the Pyramid web framework that intercepts request handling and automatically retries failed requests under certain conditions. When a request raises an exception that the policy considers retryable, it will attempt to re-execute the request up to a configurable limit before allowing the error to propagate. The policy is configured via settings and can be customized per-request through hooks; it also fires events before each retry attempt, allowing applications to perform cleanup or state management.\n\nThe package depends on pyramid and zope.interface and integrates directly into Pyramid's request/response cycle. It is useful for handling transient failures in web applications\u2014network glitches, temporary resource unavailability, or other recoverable errors\u2014without requiring explicit retry logic in application code.","worth_installing":"Yes, if you are building a Pyramid application and need automatic retry logic for transient failures. The package is stable (Production/Stable status), has low install friction, and is actively maintained. However, note that the last release was in 2020; verify compatibility with your Pyramid version before adopting."},"id":"pyramid-retry","links":{"html":"https://skillfed.io/packages/pyramid-retry","md":"https://skillfed.io/packages/pyramid-retry.md","pypi":"https://pypi.org/project/pyramid-retry/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2020-03-21","license_spdx":null,"license_treatment":"permissive","name":"pyramid-retry","python_support":"unspecified","summary":"An execution policy for Pyramid that supports retrying requests after certain failure exceptions."},"popularity":{"monthly_downloads":79095,"position":14382,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.1.1"}
