Write the retry wrapper #29

Closed
opened 2026-10-28 10:20:36 +01:00 by Tirsvad · 0 comments
Owner

Implement retry(func, retries=7, description=None) that calls the function, logs each failed attempt with the description and re-raises after the last one. Unit-test it with a fake that fails n times.

Phase: MIL-007
Reference: O6

Implement `retry(func, retries=7, description=None)` that calls the function, logs each failed attempt with the description and re-raises after the last one. Unit-test it with a fake that fails n times. Phase: MIL-007 Reference: O6
Tirsvad added this to the MIL-007 Lecture step 9: resilience against network failures milestone 2026-10-28 10:20:36 +01:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/049-snack-and-lift#29