fix: send-reminder cron

This commit is contained in:
2026-07-17 18:21:34 +02:00
parent 0277502e47
commit a66d8f9e8e
4 changed files with 19 additions and 32 deletions
+4 -2
View File
@@ -122,10 +122,12 @@ and so on. A dose with no reminder time never notifies.
**3. Turn reminders on** in the Reminders card on the Today page, and use **Send
test** there to confirm the whole chain works before trusting it with the cat.
**4. Run the sender from cron**, every ten minutes:
**4. Run the sender from cron**`make cron` installs the line below. Cron's
environment is nearly empty, so `uv` is called by absolute path and loads
`.env` (the VAPID keys) itself:
```cron
*/10 * * * * cd /path/to/Osiris && uv run python manage.py send_reminders >> /var/log/osiris-reminders.log 2>&1
*/10 * * * * cd /path/to/Osiris && /path/to/uv run --no-sync --env-file .env python manage.py send_reminders >> reminders.log 2>&1
```
The command only pushes a dose that is due and not already ticked off, and