Separate readiness check from health check
continuous-integration/drone Build is passing Details

This commit is contained in:
Lauri Võsandi 2022-12-02 19:03:16 +02:00
parent c23d8856c2
commit 15e0ee5bc5
1 changed files with 7 additions and 0 deletions

View File

@ -500,6 +500,13 @@ async def stream_wrapper(request):
@app.route("/readyz")
async def ready_check(request):
if app.ctx.mask is None:
return response.text("Not enough frames", status=503)
return response.text("OK")
@app.route("/healthz")
async def health_check(request):
if app.ctx.mask is None:
return response.text("Not enough frames", status=503)