Preskoči na glavni sadržaj
🔒 Način pregleda. Prvih petnaest Foundations lekcija je besplatno; ova je Pro. Pokrenite 7-dnevni trial da otključate editor, AI savjete i ostatak programa. Kartica obavezna, otkažite bilo kada u Dashboard.Pokreni 7-dnevni trial →
← KolegijiFastAPI ProductionModul 4 · Async, pozadinski zadaci, WebSocketsUzorak prekidačawrite55 / 105
+150 XP
Zadatak🌐 shown in EN
📝 **Question:** Implement `CircuitBreaker`. fail_max=2, recovery=10. 2 fails → opens. Call while open → RuntimeError. After 10s → half_open; success → closed. Print results for: 2 failed calls, 1 attempted while open, advance time, 1 successful call. 📋 Pick the right answer. 💡 **Hint:** Re-read the theory above if unsure.
✏️ Piši kod ovdje
🐍
Učitavanje Pythona...
Jednokratno preuzimanje (~1 MB). Zatim radi odmah.
📊 Rezultat
Klikni Pokreni da vidiš rezultat...