diff options
Diffstat (limited to '')
| -rw-r--r-- | webmentions_ssg/tasks/consumer.py | 5 |
1 files changed, 5 insertions, 0 deletions
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 |
