Healthcheck updates, UI to remove wierd bar
This commit is contained in:
@@ -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})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user