mirror of
https://github.com/mudler/LocalAI.git
synced 2026-03-31 21:25:59 -04:00
chore(nodes): restore offline nodes too
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user