# Failures and scaling

> What happens to a lesson, an exercise or your progress when a part of Learn, or a product it uses, fails.

Applies to: the Sypnia engine (open source, self-hosted) and Sypnia Cloud (paid service).  
Source: https://learn.docs.sypnia.com/architecture/failures-and-scaling/

For agents: Failures: runner down/timeout → check result error (never fail), retried up to 3 times with backoff, then 503 runner_unavailable shown as «couldn't check, try again», exercise stays as it was; result callback lost → orchestrator polls the runner; Git down → can't start/finish (repository_unreachable), lessons still open; Cases/Data/Telemetry down → binder falls back to the sample project for that slot and says so; Sypnia AI down → explanations unavailable, lesson text, videos and checks work; memory write fails → retried from an outbox, progress is the source of truth; video CDN down → transcript still there; engine Postgres down → 503. Idempotency: check runs keyed by exercise+commit; progress writes idempotent. DLQ alarms.

| When this fails                  | What you see                                                      | What Learn does                                                               |
| -------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------------------- |
| the runner, or a check times out | «We couldn't check this time; it is not your work»                | marks the check `error`, retries up to three times, then lets you check again |
| the runner's answer is lost      | nothing                                                           | asks the runner for the result itself                                         |
| Git                              | you cannot start or finish an exercise (`repository_unreachable`) | lessons still open and can be read                                            |
| Cases, Data or Telemetry         | the lesson uses the sample bakery for that example, and says so   | tries your project again next time                                            |
| Sypnia AI                        | «Explanations are not available right now»                        | lessons, videos and checks keep working                                       |
| writing the note in your memory  | nothing                                                           | keeps the note in an outbox and retries; your progress is already saved       |
| the video network                | the video does not load                                           | the text and the transcript are still there                                   |
| the engine's database            | Learn is unavailable (`503`)                                      | nothing is lost; every write is repeated safely                               |

## Never twice

A check run is keyed by the exercise and the commit, so checking the same commit twice reuses the result, and marking a lesson done twice changes nothing. In Sypnia Cloud, messages that fail again and again land in a dead-letter queue with an alarm.
