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

Add healthcheck endpoint to server #42

Merged
merged 2 commits into from
May 27, 2022
Merged

Conversation

emoritzx
Copy link
Contributor

This will allow for readiness/liveliness probes for container orchestrators (such as docker-compose or kubernetes)

@kahst
Copy link
Owner

kahst commented May 25, 2022

Good idea! Do you think the response should be consistent with other responses and have the form

data = {'msg': 'Server is healthy.'}
return json.dumps(data)

with a JSON payload?

@emoritzx
Copy link
Contributor Author

Sounds good. Updated to match.

@kahst kahst merged commit c41685e into kahst:main May 27, 2022
@kahst
Copy link
Owner

kahst commented May 27, 2022

Great, thanks.

@emoritzx emoritzx deleted the server-healthcheck branch April 1, 2023 13:59
Josef-Haupt pushed a commit to Josef-Haupt/BirdNET-Analyzer that referenced this pull request Feb 24, 2024
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

Successfully merging this pull request may close these issues.

2 participants