mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 03:04:03 +00:00
22fb25ac00
addresses #471 when pulse restarts (service restart, container restart, etc), active alerts are loaded from disk but notifications were never sent for these restored alerts. this caused users to miss critical ongoing alerts that existed before the restart. the issue was particularly noticeable with memory alerts on VMs - if a VM's memory was genuinely high and an alert was created, then pulse restarted, the alert would show in 'Active Alerts' but no webhook notification would be sent. however, manually creating a 'fake' alert by lowering thresholds would work because those are new alerts. fix: now sends notifications for restored critical alerts that started within the last 2 hours. adds a 10-second delay after restart to allow the system to stabilize before sending notifications. warning-level alerts are not re-notified to avoid spam on restart.