Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d25e40e

Browse files
code refactored
1 parent cb5e47e commit d25e40e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

‎src/main/main.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,12 @@ async def check_all_services():
580580

581581

582582
# noinspection PyUnusedLocal
583-
@app.get("/_ah/warmup", include_in_schema=False)
583+
@app.get("/_ah/warmup", include_in_schema=True)
584584
async def status_check(request: Request):
585+
"""
586+
**status_check**
587+
used as a way to monitor if the gateway is up - will have a side effect of also checking all API Servers
588+
"""
585589
_payload = await check_all_services()
586590
response = dict(payload=_payload)
587591
return JSONResponse(content=response, status_code=200, headers={"Content-Type": "application/json"})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /