python-resilience

Reviews Python services for explicit timeouts, bounded retries, and safe shutdown.

Updated Mar 29, 2026
One-click install
npx skills add https://github.com/jamesogunsan/prod-eng-skills --skill python-resilience-jamesogunsan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-resilience
Source: https://github.com/jamesogunsan/prod-eng-skills/tree/main/plugins/python-development/skills/python-resilience
Command: npx skills add https://github.com/jamesogunsan/prod-eng-skills --skill python-resilience-jamesogunsan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Improves resilience of Python services and batch jobs by guiding explicit handling of failures, timeouts, and safe degradation in production environments.

Core Features & Use Cases

  • Explicit timeouts for external calls and dependencies
  • Bounded retries with backoff and idempotency considerations
  • Graceful shutdown, recovery planning, and blast-radius reduction
  • Use Case: apply resilience guidelines to a long-running worker that processes external data and may fail intermittently

Quick Start

Assess a Python service for resilience by providing explicit timeouts, bounded retries, and graceful degradation.

Frequently Asked Questions about python-resilience

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

FAQPage Schema
How do I add resilience to a Python service that relies on external dependencies?

You make Python services resilient by enforcing explicit timeouts for external calls, bounding retries with backoff, and implementing graceful degradation to handle failures safely.

What is graceful shutdown and why does it matter for Python data pipelines?

Graceful shutdown in Python data pipelines ensures safe state handling and prevents data loss during failures by managing backpressure and reducing the blast radius of dependency outages.

How do I implement bounded retries with backoff and idempotency in Python?

Implement bounded retries in Python by setting strict retry limits with exponential backoff and jitter, while verifying idempotency to prevent duplicate side effects during intermittent external call failures.

Does this resilience guidance apply to batch jobs and long-running workers?

Yes, this resilience guidance directly applies to batch jobs and long-running workers by addressing latency, backpressure, and state safety for processes handling external data that may fail intermittently.

How do I set explicit timeouts for external calls in a Python production service?

Set explicit timeouts for Python production services by configuring strict time limits on every external dependency, queue, and subprocess to manage latency and prevent cascading failures under load.