Resolved-alert notifications sent individually (not grouped) on service restart, causing dead-lettered webhook deliveries
Version: 6.2.1
Summary
When the Pulse process restarts while multiple alerts are in an active state, Pulse reloads the persisted active-alert list, immediately re-evaluates each one, and — for any that are no longer triggering — fires an individual webhook_resolved notification per alert, one call after another within the same second. This bypasses the notification grouping window entirely (Settings → Alerts → Schedule → Grouping), even when grouping is enabled.
In my case this produced 15 individual resolved-webhook deliveries within under a second on restart. My webhook destination (ntfy.sh via a generic webhook) has its own request cadence limits, and Pulse's own internal per-webhook rate limiter (NotificationManager.checkWebhookRateLimit) also throttles bursts to the same destination. 4 of the 15 notifications hit rate limit exceeded for webhook <name>, retried twice more a few seconds apart (still within the burst window), and were moved to the dead-letter queue after 3 attempts.
Once in the DLQ, the pulse-system-notification-delivery system alert re-fires on every AI Patrol cycle (every 6 hours in my config) until the DLQ entries are manually cleared or expire after the configured retention period — so a single restart-time burst produces a recurring page every 6 hours until someone notices and clears it.
Steps to reproduce
- Have several guests/nodes in a
powered-off(or otherwise alerting) state long enough for Pulse to have active alerts recorded for them. - Enable notification grouping (Settings → Alerts → Schedule → Grouping), e.g. a 60s window.
- Resolve the underlying condition for several of those alerts at once (or simply restart the container/host so Pulse reloads and re-evaluates all previously-active alerts against current state).
- Restart
pulse.service(or the container). - Observe in
journalctl -u pulse: on startup, each resolved alert fires its ownwebhook_resolvednotification individually within the same second, rather than being queued through the grouping window like normal in-session alert transitions are.
Expected behavior
Resolved-alert notifications generated during startup state reconciliation should be queued through the same grouping pipeline as notifications generated during normal operation, so a batch of simultaneous resolutions produces one grouped webhook call (as already happens correctly for alerts detected mid-session — I can see "message":"sending grouped alert notifications","alertCount":15 working as intended outside of restart).
Actual behavior
Startup reconciliation sends one webhook_resolved call per resolved alert, back-to-back, bypassing grouping and tripping the internal webhook rate limiter, which lands notifications in the dead-letter queue and triggers a recurring system alert until manually cleared.
Suggested fix
Route alert-state-reconciliation-on-startup through the same notification queue / grouping logic used for alerts resolved during normal polling, rather than sending immediate individual webhook calls per alert.
Happy to provide log excerpts or test further if useful.
Source: rcourtman/Pulse