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. --- webmentions_ssg/config.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'webmentions_ssg/config.py') diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py index 3aec00d..e8288db 100644 --- a/webmentions_ssg/config.py +++ b/webmentions_ssg/config.py @@ -45,6 +45,9 @@ class DefaultConfig: MAX_REDIRECTS = 20 MAX_SOURCE_BYTES = 1_000_000 REQUEST_TIMEOUT = 5.0 + # Requeue abandoned verification attempts after 15 minutes. + VERIFICATION_TIMEOUT_SECONDS = 900 + VERIFICATION_REAPER_SCHEDULE = "*/5 * * * *" SOURCE_DIRECTORY = None SOURCE_BASE_URL = None -- cgit v1.3.1