From df3b79e2c89978ec21dc2da7f90801dce33aeab2 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Sat, 31 Oct 2026 19:00:17 +0100 Subject: fix(receiver): prevent endless verification recovery Cap stale verification requeues so repeatedly lost or crashing tasks eventually become terminal failures instead of cycling indefinitely. Reject URLs that httpx cannot safely fetch before enqueueing, and persist unexpected verification errors as terminal failures. --- contrib/webmentions-ssg.example.cfg | 3 +++ 1 file changed, 3 insertions(+) (limited to 'contrib') diff --git a/contrib/webmentions-ssg.example.cfg b/contrib/webmentions-ssg.example.cfg index 45ae297..577eeef 100644 --- a/contrib/webmentions-ssg.example.cfg +++ b/contrib/webmentions-ssg.example.cfg @@ -73,6 +73,9 @@ 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 +# Max stale-row requeues before marking the Webmention failed. Manual +# reverification or a new submission after the cooldown resets this counter. +VERIFICATION_MAX_RECOVERIES = 3 # Huey cron expression: every five minutes (in UTC). VERIFICATION_REAPER_SCHEDULE = "*/5 * * * *" -- cgit v1.3.1