mirror of
https://github.com/fosrl/newt.git
synced 2026-03-08 23:03:03 -05:00
[PR #71] [MERGED] Add healthcheck #101
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/fosrl/newt/pull/71
Author: @woutervanelten
Created: 6/25/2025
Status: ✅ Merged
Merged: 6/30/2025
Merged by: @oschwartz10612
Base:
dev← Head:add-healthcheck📝 Commits (7)
678d82fadded healthy check in main.goa76e6c9added healthy check in main.goe357e7bUpdate main.go7002871Update main.go9db3b78Update main.go071a51aUpdate main.go0add2ecMerge branch 'add-healthcheck' of github.com:woutervanelten/newt into woutervanelten-add-healthcheck📊 Changes
1 file changed (+19 additions, -2 deletions)
View changed files
📝
main.go(+19 -2)📄 Description
Community Contribution License Agreement
By creating this pull request, I grant the project maintainers an unlimited,
perpetual license to use, modify, and redistribute these contributions under any terms they
choose, including both the AGPLv3 and the Fossorial Commercial license terms. I
represent that I have the right to grant this license for all contributed content.
Description
Expanded the code to write a /tmp/healthy file if ping is successfull.
Removes the /tmp/healthy file if ping failes 3 times.
How to test?
add the following to docker-compose to have healthcheck.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.