.
This commit is contained in:
@@ -7,7 +7,7 @@ _healthy = True
|
|||||||
|
|
||||||
|
|
||||||
@app.get("/health")
|
@app.get("/health")
|
||||||
def health():
|
async def health():
|
||||||
if not _healthy:
|
if not _healthy:
|
||||||
return JSONResponse(
|
return JSONResponse(
|
||||||
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
|
||||||
|
|||||||
Reference in New Issue
Block a user