fix: send-reminder cron
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user