refresh api and tests
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Роут проверки доступности сервиса и соединения с БД.
|
||||
# Проверка API и БД.
|
||||
|
||||
import logging
|
||||
|
||||
@@ -14,7 +14,7 @@ logger = logging.getLogger("MOBILEDE_scraper.api.health")
|
||||
|
||||
@router.get("/health")
|
||||
def health_check(persistence: PersistenceService = Depends(get_persistence)):
|
||||
# Проверка API и БД
|
||||
# Проверяем доступность БД.
|
||||
db_ok = False
|
||||
try:
|
||||
with persistence.session_scope() as session:
|
||||
|
||||
Reference in New Issue
Block a user