aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorDennis Fink2026-10-30 20:13:42 +0100
committerDennis Fink2026-10-30 20:13:42 +0100
commit8fd569c6c0a39761f7ddda3c6e145d90534b4300 (patch)
treef92209df1918fd5c9ac27efe25463afaef2a1a5f /contrib
parenta2992533873cb53acb052cdcd4288430b24af587 (diff)
downloadwebmentions-ssg-8fd569c6c0a39761f7ddda3c6e145d90534b4300.tar.gz
webmentions-ssg-8fd569c6c0a39761f7ddda3c6e145d90534b4300.zip
fix(receiver): recover stale Webmention verifications
Add a periodic recovery sweep for Webmentions left in received or verifying states after worker crashes, lost queue entries, or interrupted processing. Use atomic lease-style updates so stale workers cannot overwrite newer results, and index verification state for efficient recovery scans.
Diffstat (limited to '')
-rw-r--r--contrib/webmentions-ssg.example.cfg4
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg
index 7dfdd7a..bf363b8 100644
--- a/contrib/webmentions-ssg.example.cfg
+++ b/contrib/webmentions-ssg.example.cfg
@@ -48,6 +48,10 @@ ALLOWED_HOSTNAMES = {"example.com", "www.example.com"}
REQUEST_TIMEOUT = 5.0 # seconds; also used for outgoing requests
MAX_REDIRECTS = 20 # also used for outgoing requests
MAX_SOURCE_BYTES = 1_000_000
+# Requeue stuck verifications and lost queued tasks after 15 minutes.
+VERIFICATION_TIMEOUT_SECONDS = 900
+# Huey cron expression: every five minutes (in UTC).
+VERIFICATION_REAPER_SCHEDULE = "*/5 * * * *"
# ---------------------------------------------------------------------------
# Rate limiting