Add exponential backoff with jitter
Mid · practical lab · 30 min · runtime python
Brief
Implement retry(times=3, base=0.2) that retries only transient errors, backs off exponentially with jitter, and re-raises the last error. Do not retry validation or programming errors.
3 progressive hints are available in the editor.
Public checks
- retries transient — expected:
catches only the transient exception