We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 088785b commit 16629c0Copy full SHA for 16629c0
1 file changed
lf_toolkit/io/handler.py
@@ -59,7 +59,8 @@ async def handle_preview(self, req: dict):
59
60
async def handle_healthcheck(self, req: dict):
61
from .healthcheck import run_healthcheck
62
- return await anyio.to_thread.run_sync(run_healthcheck)
+ result = await anyio.to_thread.run_sync(run_healthcheck)
63
+ return {"status": "OK" if result["tests_passed"] else "DEGRADED"}
64
65
async def handle(self, name: Command, req: dict) -> dict:
66
handler = getattr(self, f"handle_{name}", None)
0 commit comments