diff options
| author | Dennis Fink | 2026-10-30 20:13:42 +0100 |
|---|---|---|
| committer | Dennis Fink | 2026-10-30 20:13:42 +0100 |
| commit | 8fd569c6c0a39761f7ddda3c6e145d90534b4300 (patch) | |
| tree | f92209df1918fd5c9ac27efe25463afaef2a1a5f /contrib | |
| parent | a2992533873cb53acb052cdcd4288430b24af587 (diff) | |
| download | webmentions-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 'contrib')
| -rw-r--r-- | contrib/webmentions-ssg.example.cfg | 4 |
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 |
