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