Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Frontend Health Check Behaviour #18

Open
c-kruse opened this issue Nov 6, 2024 · 0 comments
Open

Frontend Health Check Behaviour #18

c-kruse opened this issue Nov 6, 2024 · 0 comments

Comments

@c-kruse
Copy link

c-kruse commented Nov 6, 2024

I do not think that frontend /api/health it is doing what it was written to do. It appears to return 200 pretty much regardless of what happens with the backend call:

@star.route("/api/health", methods=["GET"])
async def health(request):
await send_greeting("Testy Tiger", "Hi")
return Response("OK\n", 200)

It could be useful for this to return non-okay when the backend service is unavailable for automated test scenarios where we could hook it up to pod readiness or just have a cleaner endpoint to poll.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant