feat(monitor): add STALE state for push monitors #57

Merged
lerko merged 4 commits from feat/push-stale-state into main 2026-06-04 18:23:58 +00:00
Showing only changes of commit e084e60dfc - Show all commits
+5 -1
View File
@@ -748,7 +748,11 @@ func (e *Engine) checkGroup(site models.Site) {
}
if child.Status == "DOWN" || child.Status == "SSL EXP" {
status = "DOWN"
} else if child.Status == "PENDING" && status != "DOWN" {
} else if child.Status == "STALE" && status != "DOWN" {
status = "STALE"
} else if child.Status == "LATE" && status != "DOWN" && status != "STALE" {
status = "LATE"
} else if child.Status == "PENDING" && status != "DOWN" && status != "STALE" && status != "LATE" {
status = "PENDING"
}
}