Healthcheck updates, UI to remove wierd bar

This commit is contained in:
2026-07-19 23:11:00 +02:00
parent aac9e82766
commit e047499fed
6 changed files with 402 additions and 2 deletions
+9
View File
@@ -317,6 +317,15 @@ func (app *App) nodesPatchHandler(writer http.ResponseWriter, request *http.Requ
node,
fmt.Sprintf("health_check_interval_seconds=%d", node.HealthCheckIntervalSeconds),
)
if node.HealthCheckIntervalSeconds > 0 && app.HealthChecker != nil {
nodeID := node.ID
actor := user.Username
go func() {
_, _ = app.HealthChecker.CheckNodeByID(nodeID, actor)
}()
}
writeJSON(writer, http.StatusOK, nodeResponse{Node: node})
}