Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

fix(patrol): skip alert triggers when Patrol is disabled

rcourtman43af70ca1fea
diff --git a/internal/ai/patrol_run.go b/internal/ai/patrol_run.go
index fc2ac9bc34..1d3169ba7c 100644
--- a/internal/ai/patrol_run.go
+++ b/internal/ai/patrol_run.go
@@ -1496,9 +1496,14 @@ func (p *PatrolService) TriggerPatrolForAlert(alert *alerts.Alert) {
}
p.mu.RLock()
+ enabled := p.config.Enabled
triggerManager := p.triggerManager
p.mu.RUnlock()
+ if !enabled {
+ return
+ }
+
resourceType := inferResourceType(alert.Type, alert.Metadata)
if triggerManager != nil {