|
@@ -10,13 +10,8 @@ class ServiceClient(Protocol):
|
|
|
async def set_price(self, d: str, price: int) -> None: ...
|
|
async def set_price(self, d: str, price: int) -> None: ...
|
|
|
async def set_availability(self, d: str, available: bool) -> None: ...
|
|
async def set_availability(self, d: str, available: bool) -> None: ...
|
|
|
async def probe(self) -> None:
|
|
async def probe(self) -> None:
|
|
|
- """Liveness check used by the health monitor. Raises ServiceAuthError on failure.
|
|
|
|
|
- Default implementation calls get_calendar for today. Override for clients where
|
|
|
|
|
- a live calendar fetch is not a reliable health signal.
|
|
|
|
|
- """
|
|
|
|
|
- from room_cal._utils import local_today
|
|
|
|
|
- today = local_today().isoformat()
|
|
|
|
|
- await self.get_calendar(today, today)
|
|
|
|
|
|
|
+ """Liveness check used by the health monitor. Raises ServiceAuthError on failure."""
|
|
|
|
|
+ ...
|
|
|
|
|
|
|
|
|
|
|
|
|
@runtime_checkable
|
|
@runtime_checkable
|