diff --git a/apps/authentication/webapi/providers/probes.py b/apps/authentication/webapi/providers/probes.py index 7c5b5d8..d7b0dac 100644 --- a/apps/authentication/webapi/providers/probes.py +++ b/apps/authentication/webapi/providers/probes.py @@ -1,19 +1,14 @@ from common.probes import ProbeManager, ProbeType from common.probes.adapters import FastAPIAdapter -from .database import check_database_initialized def register(app): probes_manager = ProbeManager() probes_manager.register_adapter("fastapi", FastAPIAdapter(app)) - async def readiness_checker(): - return await check_database_initialized() - probes_manager.register( name="readiness", prefix="/api", type=ProbeType.READINESS, - check_func=readiness_checker, frameworks=["fastapi"] )