chore(nodes): restore offline nodes too

Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
Ettore Di Giacinto
2026-03-31 14:22:08 +00:00
parent 87a63316c7
commit 3cc05af2e5

View File

@@ -139,7 +139,7 @@ func (hm *HealthMonitor) doCheckAll(ctx context.Context) {
}
// Heartbeat is fresh — node is alive
if node.Status == StatusUnhealthy {
if node.Status == StatusUnhealthy || node.Status == StatusOffline {
xlog.Info("Node recovered", "node", node.Name)
if err := hm.registry.MarkHealthy(ctx, node.ID); err != nil {
xlog.Error("Failed to mark node healthy", "node", node.Name, "error", err)