fix(engine): skip children in maintenance when computing group status
Group status now treats maintenance'd children like paused ones — they're excluded from the UP/DOWN calculation. Prevents group from showing DOWN when its only failing child is under maintenance.
This commit is contained in:
@@ -477,7 +477,7 @@ func (e *Engine) checkGroup(site models.Site) {
|
|||||||
if !child.Paused {
|
if !child.Paused {
|
||||||
allPaused = false
|
allPaused = false
|
||||||
}
|
}
|
||||||
if child.Paused {
|
if child.Paused || e.isInMaintenance(child.ID) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
if child.Status == "DOWN" || child.Status == "SSL EXP" {
|
if child.Status == "DOWN" || child.Status == "SSL EXP" {
|
||||||
|
|||||||
Reference in New Issue
Block a user