From edd7c0c2220ba12c2a773f9ba1cf6e0e7a273856 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Thu, 29 Oct 2026 20:59:48 +0100 Subject: feat(receiver): send Webmention notification digests Batch verified Webmention notifications into a scheduled digest so bursts of incoming mentions do not generate a separate email for every verification. Track which mentions have already been reported and leave them pending when SMTP delivery fails so a later digest can retry safely. --- webmentions_ssg/tasks/consumer.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'webmentions_ssg/tasks/consumer.py') diff --git a/webmentions_ssg/tasks/consumer.py b/webmentions_ssg/tasks/consumer.py index 4dd10c7..559ef5d 100644 --- a/webmentions_ssg/tasks/consumer.py +++ b/webmentions_ssg/tasks/consumer.py @@ -26,6 +26,11 @@ def create_consumer() -> Huey: schedule = crontab(*app.config["SCANNER_SCHEDULE"].split(), strict=True) HUEY.periodic_task(schedule)(scanner.scan_sources) + notification_schedule = crontab( + *app.config["NOTIFICATION_SCHEDULE"].split(), strict=True + ) + HUEY.periodic_task(notification_schedule)(notifications.send_webmention_digest) + return HUEY.huey -- cgit v1.3.1