Six lessons covered the reliability primitives — retry with backoff, idempotency prediction, dedup keys, state across runs in a Sheet, partial failure handling, structured logging. 80% to pass.
Week 3 promotes these into schedule-safe patterns — the question becomes "is this script safe to run at 9am every day, unattended?" and the answer involves all six week-2 primitives plus pre-flight validation, configuration extraction, and self-alerting on failure.
| Lesson | Concept |
|---|---|
| 9 | Retry with exponential backoff — 3 attempts, 2 ** attempt sleep, for/else: raise |
| 10 | Idempotency: predict — reads safe; writes need uniqueness keys |
| 11 | Dedup keys — seen = set(), skip if key in seen |
| 12 | State across runs — Sheet as durable store, append-as-you-go |
| 13 | Partial failure — try/except per item, count ok/fail, summary at end |
| 14 | Structured logging — log(event, **fields) → JSON lines |
Week 3 = schedule-safe production patterns. The reliability primitives become defaults; the new layer is audit your script as if it ran every hour without you. Failure self-alerts, configuration in one place, validate inputs before side effects, and a synthesis combining 5+ prior primitives.
Create a free account to get started. Paid plans unlock all tracks.
Six lessons covered the reliability primitives — retry with backoff, idempotency prediction, dedup keys, state across runs in a Sheet, partial failure handling, structured logging. 80% to pass.
Week 3 promotes these into schedule-safe patterns — the question becomes "is this script safe to run at 9am every day, unattended?" and the answer involves all six week-2 primitives plus pre-flight validation, configuration extraction, and self-alerting on failure.
| Lesson | Concept |
|---|---|
| 9 | Retry with exponential backoff — 3 attempts, 2 ** attempt sleep, for/else: raise |
| 10 | Idempotency: predict — reads safe; writes need uniqueness keys |
| 11 | Dedup keys — seen = set(), skip if key in seen |
| 12 | State across runs — Sheet as durable store, append-as-you-go |
| 13 | Partial failure — try/except per item, count ok/fail, summary at end |
| 14 | Structured logging — log(event, **fields) → JSON lines |
Week 3 = schedule-safe production patterns. The reliability primitives become defaults; the new layer is audit your script as if it ran every hour without you. Failure self-alerts, configuration in one place, validate inputs before side effects, and a synthesis combining 5+ prior primitives.