mirror of
https://github.com/bitbaum/orangecat.git
synced 2026-12-03 21:17:24 +01:00
The Cat's set_reminder stored a task with is_reminder and a due date, and nothing read it at its time. A job every 5 minutes (api/cron/task-reminders, systemd orangecat-cron@task-reminders.timer) now sends the owner an in-app notification once (tasks.reminded_at), linking to the task. No model call.
14 lines
439 B
SYSTEMD
14 lines
439 B
SYSTEMD
# SSOT: repo scripts/systemd/ — installed by deploy-selfhost.sh.
|
|
# Instance of the generic orangecat-cron@.service template (curls
|
|
# /api/cron/task-reminders with CRON_SECRET). Every 5 minutes, each reminder
|
|
# that fell due sends its owner an in-app notification, once. No model call.
|
|
[Unit]
|
|
Description=OrangeCat task reminders (every 5 minutes)
|
|
|
|
[Timer]
|
|
OnCalendar=*-*-* *:00/5:00 UTC
|
|
Persistent=true
|
|
|
|
[Install]
|
|
WantedBy=timers.target
|