-
-
Notifications
You must be signed in to change notification settings - Fork 891
docker: add basic healthcheck #555
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
Conversation
Codecov ReportBase: 66.14% // Head: 65.94% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #555 +/- ##
==========================================
- Coverage 66.14% 65.94% -0.20%
==========================================
Files 36 36
Lines 3801 3811 +10
==========================================
- Hits 2514 2513 -1
- Misses 925 934 +9
- Partials 362 364 +2
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
I added a preliminary health API endpoint for this. Seems like a good thing to have. For now it's just a dummy endpoint that returns 200, but we could make that more functional later: dd28296 |
|
Should the |
|
The disallowed topics are just for paths that do not have a |
|
@binwiederhier adapted the check for the |
|
Do you think the grep is even necessary right now? I mean if it returns a non-200 code, wget will fail and retry anyway, right? |
|
Depends on the API. If a It's just a bit odd as you're querying the health of the server and the status code is for the query. If the API would return |
I honestly don't know what the best practice is here. I tried to Google but without success. Let's just leave it like this for now. |
@binwiederhier couldn't spot any kind of version endpoint, or I would have preferred that.