aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/config.py
diff options
context:
space:
mode:
authorDennis Fink2026-10-30 13:24:53 +0100
committerDennis Fink2026-10-30 13:24:53 +0100
commitf6d96df2c3aecb51ca97426efddb101dce6350d7 (patch)
tree2968f65a627fbfd15051277d07eaa321db0e3cc4 /webmentions_ssg/config.py
parent2b59a3082000842d980f9e19931949dbe5011229 (diff)
downloadwebmentions-ssg-f6d96df2c3aecb51ca97426efddb101dce6350d7.tar.gz
webmentions-ssg-f6d96df2c3aecb51ca97426efddb101dce6350d7.zip
feat(sender): add persistent retry backoff
Persist retry state per source revision so temporary delivery failures survive worker restarts and duplicate queued tasks cannot bypass the retry schedule. Use capped exponential backoff, stop after a configurable attempt limit, and reset the retry budget when a source changes or an admin resends manually.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/config.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/webmentions_ssg/config.py b/webmentions_ssg/config.py
index 8cad51f..3aec00d 100644
--- a/webmentions_ssg/config.py
+++ b/webmentions_ssg/config.py
@@ -49,6 +49,10 @@ class DefaultConfig:
SOURCE_DIRECTORY = None
SOURCE_BASE_URL = None
SCANNER_SCHEDULE = "0 * * * *"
+ # Total send attempts per source revision (not additional retries).
+ SEND_MAX_ATTEMPTS = 6
+ SEND_RETRY_BASE_SECONDS = 3600
+ SEND_RETRY_MAX_SECONDS = 86400
NOTIFICATION_EMAIL = None
NOTIFICATION_SCHEDULE = "0 8 * * *"