diff options
| author | Dennis Fink | 2026-10-30 13:24:53 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-30 13:24:53 +0100 |
| commit | f6d96df2c3aecb51ca97426efddb101dce6350d7 (patch) | |
| tree | 2968f65a627fbfd15051277d07eaa321db0e3cc4 /contrib | |
| parent | 2b59a3082000842d980f9e19931949dbe5011229 (diff) | |
| download | webmentions-ssg-f6d96df2c3aecb51ca97426efddb101dce6350d7.tar.gz webmentions-ssg-f6d96df2c3aecb51ca97426efddb101dce6350d7.zip | |
feat(sender): add persistent retry backoff
Persist retry state per source revision so temporary delivery failures
survive worker restarts and duplicate queued tasks cannot bypass the
retry schedule.
Use capped exponential backoff, stop after a configurable attempt limit,
and reset the retry budget when a source changes or an admin resends
manually.
Diffstat (limited to 'contrib')
| -rw-r--r-- | contrib/webmentions-ssg.example.cfg | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg index d214312..7dfdd7a 100644 --- a/contrib/webmentions-ssg.example.cfg +++ b/contrib/webmentions-ssg.example.cfg @@ -79,6 +79,14 @@ SOURCE_BASE_URL = "https://example.com/" # Huey cron expression: minute hour day-of-month month day-of-week. SCANNER_SCHEDULE = "0 * * * *" # every hour +# Temporary delivery failures use persisted exponential backoff: 1, 2, 4, +# 8, then 16 hours between attempts with these defaults. After six total +# attempts for a revision, the failure becomes terminal. A changed source or +# explicit manual resend starts a fresh retry budget. +SEND_MAX_ATTEMPTS = 6 +SEND_RETRY_BASE_SECONDS = 3600 +SEND_RETRY_MAX_SECONDS = 86400 + # Do not send Webmentions to your own site. Glob patterns are supported here. IGNORED_HOSTNAMES = ("example.com", "*.example.com") MAX_TARGET_BYTES = 1_000_000 |
