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

[Feature] health endpoint #1673

Closed
pseudotensor opened this issue May 28, 2024 · 2 comments
Closed

[Feature] health endpoint #1673

pseudotensor opened this issue May 28, 2024 · 2 comments
Assignees

Comments

@pseudotensor
Copy link

Motivation

Common to check health, easy to add /health endpoint so one can check status of endpoint.

Related resources

No response

Additional context

No response

@AllentDan
Copy link
Collaborator

AllentDan commented May 29, 2024

Can you pull a merge request to support it?

@pseudotensor
Copy link
Author

It would take so many steps for such a small number of lines of code, but this is what you'd add for a fastAPI case:

@app.get("/health")
async def health() -> Response:
    """Health check."""
    return Response(status_code=200)

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

3 participants