Expand description
Persisted notification config + the delivery outbox.
Structs§
- Notification
Delivery - One queued attempt to deliver one notification to one target.
- Notification
Target - A configured destination: which channel, how it is set up, and which events it wants.
Constants§
- MAX_
ATTEMPTS - Give up after this many tries. Roughly 1s + 5s + 25s + 125s + 625s of backoff — about thirteen minutes, which covers a short outage or a rate limit without leaving a genuinely broken destination retrying forever.
- STATUS_
FAILED - Retries exhausted, or the channel said the config is wrong. Terminal until a human retries it.
- STATUS_
PENDING - Statuses a delivery row moves through. Strings, not an enum column, to match how the rest of the CMS stores small vocabularies (page status, media kind) and to keep a future status from needing a migration.
- STATUS_
SENT
Functions§
- backoff_
secs - Backoff before attempt
n(1-based).