Spaces:
Running

Yash030 Claude Opus 4.7 commited on
Commit
188ffa9
·
1 Parent(s): 84a115b

Fix stale sessions in admin dashboard and improve auto-routing health

Browse files

- Add session cleanup background task (runs every 60s) to remove inactive sessions
- Wire cleanup loop into AppRuntime startup/shutdown lifecycle
- Per-provider health parameters: NIM gets tighter TTL (15s/2 failures), Zen looser (60s/5)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

3 files changed +59 -6
Files changed (3)
api/runtime.py+13
core/session_tracker.py+14-1
providers/rate_limit.py+32-5