feat: add retry with exponential backoff for notification delivery #87

Merged
sneak merged 2 commits from feature/62-notification-retry-backoff into main 2026-03-22 07:14:59 +01:00
Showing only changes of commit 6d8bb86a55 - Show all commits

View File

@@ -11,14 +11,14 @@ import (
const ( const (
// DefaultMaxRetries is the number of additional attempts // DefaultMaxRetries is the number of additional attempts
// after the first failure. // after the first failure.
DefaultMaxRetries = 3 DefaultMaxRetries = 5
// DefaultBaseDelay is the initial delay before the first // DefaultBaseDelay is the initial delay before the first
// retry attempt. // retry attempt.
DefaultBaseDelay = 1 * time.Second DefaultBaseDelay = 1 * time.Second
// DefaultMaxDelay caps the computed backoff delay. // DefaultMaxDelay caps the computed backoff delay.
DefaultMaxDelay = 10 * time.Second DefaultMaxDelay = 60 * time.Second
// backoffMultiplier is the exponential growth factor. // backoffMultiplier is the exponential growth factor.
backoffMultiplier = 2 backoffMultiplier = 2