0156-python-resilience
CommunityMake Python services tolerate transient failures.
Software Engineering#python#resilience#retry logic#timeouts#exponential backoff#tenacity#fault-tolerant decorators
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
It helps developers prevent cascading failures by handling transient errors gracefully instead of immediately failing requests.
Core Features & Use Cases
- Automatic retries with bounds: Retry only when failures are likely transient, while capping attempts and duration to avoid infinite loops.
- Exponential backoff with jitter: Space retry attempts safely to reduce load spikes and thundering-herd effects.
- Timeouts and fault-tolerant decorators: Apply consistent timeout behavior and cross-cutting concerns (like tracing/logging) around business logic.
- HTTP- and exception-aware retry logic: Retry selected HTTP status codes (e.g., 429/5xx) and specific network exception types.
Quick Start
Tell the AI: implement a retry + exponential backoff (with jitter) wrapper around my external HTTP calls using tenacity, retrying only transient network failures and retryable status codes, with a strict timeout and bounded retry limits.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0156-python-resilience Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0156-python-resilience Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.