mirror of
https://github.com/mudler/LocalAI.git
synced 2026-09-20 13:17:56 -04:00
chore(nodes): restore offline nodes too
Signed-off-by: Ettore Di Giacinto <mudler@localai.io>
This commit is contained in:
1 parent
87a63316c7
commit
3cc05af2e5
1 file changed
+1
-1
@@ -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