From f6d96df2c3aecb51ca97426efddb101dce6350d7 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 30 Oct 2026 13:24:53 +0100 Subject: 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. --- contrib/webmentions-ssg.example.cfg | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'contrib/webmentions-ssg.example.cfg') 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 -- cgit v1.3.1