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.

Give notification retries a horizon that survives a destination restart

rcourtman6bad0bd8849c
diff --git a/internal/notifications/queue.go b/internal/notifications/queue.go
index 6efa704a7e..d5816bd02f 100644
--- a/internal/notifications/queue.go
+++ b/internal/notifications/queue.go
@@ -20,8 +20,11 @@ import (
)
// defaultQueueMaxAttempts is the default number of delivery attempts
-// before a notification is moved to the dead-letter queue.
-const defaultQueueMaxAttempts = 3
+// before a notification is moved to the dead-letter queue. With the
+// exponential backoff schedule (1s doubling, capped at 60s) eight attempts
+// span roughly three minutes, so a destination that is briefly down or
+// rebooting recovers deliveries instead of dead-lettering them.
+const defaultQueueMaxAttempts = 8
const (
notificationAuditAlertIdentifiersColumn = "alert_identifiers"