What problem does it solve?
This Skill helps developers build more reliable and fault-tolerant Python applications by implementing patterns to handle transient failures, network issues, and service outages gracefully.
Core Features & Use Cases
- Automatic Retries: Implement retry logic for external service calls that may fail temporarily.
- Exponential Backoff & Jitter: Prevent overwhelming services during recovery and avoid thundering herd issues.
- Timeouts: Ensure operations don't hang indefinitely, improving application responsiveness.
- Fault-Tolerant Decorators: Create reusable components for handling errors and retries.
- Use Case: When making an API call that might occasionally fail due to network glitches or temporary service unavailability, use this Skill to automatically retry the call with increasing delays until it succeeds or a maximum attempt limit is reached.
Quick Start
Use the python-resilience skill to define a function that retries up to 3 times with exponential backoff when calling an external service.