-
Notifications
You must be signed in to change notification settings - Fork 5
Phase 8.1: Подключить HealthRegistry к startup и /health endpoint #668
Copy link
Copy link
Open
Labels
P3Low priority / BacklogLow priority / Backlogphase:5-techdebtPhase 5: Technical DebtPhase 5: Technical DebtrefactoringArchitectural refactoringArchitectural refactoring
Description
Parent
Часть плана модульной декомпозиции: #489
Контекст
HealthRegistry реализован в modules/core/health.py (78 строк), покрыт тестом (tests/unit/test_health_registry.py), но нигде не подключён — ни к startup, ни к /health endpoint. Текущий /health в modules/core/router_health.py собирает статус вручную.
Что нужно
- Инстанцировать
HealthRegistryвServiceContainer(аналогичноevent_bus) - Каждый домен регистрирует свои health checks при startup:
llm— LLM backend доступенknowledge— Wiki RAG загруженchannels/telegram— бот-процессы живыchannels/whatsapp— бот-процессы живыinternet— InternetMonitor статусdatabase— SQLite доступна
- Переписать
/healthendpoint наhealth_registry.check_all() - Сохранить обратную совместимость формата ответа
Критерии готовности
- HealthRegistry создаётся при startup
- Минимум 3 домена регистрируют health checks
-
/healthendpoint использует HealthRegistry - Тесты проходят, CI зелёный
Зависимости
Нет.
Оценка: S (1 PR)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P3Low priority / BacklogLow priority / Backlogphase:5-techdebtPhase 5: Technical DebtPhase 5: Technical DebtrefactoringArchitectural refactoringArchitectural refactoring