python-resilience

Implement retry logic, timeouts, and decorators for fault-tolerant Python services.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/GeniusHTX/SWE-Skills-Bench --skill python-resilience-geniushtx
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/GeniusHTX/SWE-Skills-Bench/tree/main/skills/python-resilience
Command: npx skills add https://github.com/GeniusHTX/SWE-Skills-Bench --skill python-resilience-geniushtx

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Python resilience patterns address the challenge of transient failures and flaky dependencies in Python applications, enabling robust behavior under unreliable network conditions and service outages.

Core Features & Use Cases

  • Retry logic with exponential backoff and jitter to handle transient errors.
  • Timeouts and circuit-breaker mechanisms to prevent cascading failures.
  • Fault-tolerant decorators and patterns to wrap risky operations.
  • Use cases include API integrations, background jobs, and microservice communication.

Quick Start

Decorate a function with the resilience decorators and configure retry limits and backoff to observe automatic fault tolerance.

Frequently Asked Questions about python-resilience

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add retry logic with exponential backoff to Python API calls?

To add retry logic to Python API calls, you can use fault-tolerant decorators that apply exponential backoff and jitter, automatically retrying transient failures without manual loop management.

What is the best way to prevent cascading failures in Python microservices?

The best way to prevent cascading failures in Python microservices is implementing resilience patterns like timeouts and circuit-breaker mechanisms to stop operations when dependent services are unavailable.

Does Python resilience support tenacity for bounded retries?

Yes, Python resilience supports integration with libraries like tenacity, allowing you to configure bounded retries, exponential backoff, and jitter for robust decorator-based composition.

How do I wrap flaky Python background jobs with timeout decorators?

You can wrap flaky Python background jobs with timeout decorators to set strict execution limits, preventing hung processes from consuming resources during transient network failures or service outages.

When should I use circuit-breaker mechanisms instead of simple retries?

Use circuit-breaker mechanisms instead of simple retries during complete service outages to prevent cascading failures, while bounded retries with backoff handle temporary transient errors and flaky dependencies.