Skip to main content

Module model

Module model 

Source
Expand description

Persisted notification config + the delivery outbox.

Structs§

NotificationDelivery
One queued attempt to deliver one notification to one target.
NotificationTarget
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).