Add missing cron scripts.

This commit is contained in:
2025-11-22 11:12:40 +01:00
parent c375b9ee3d
commit 8de4378ad9
3 changed files with 483 additions and 0 deletions

View File

@@ -2,4 +2,8 @@
# Run every hour at minute 0
0 * * * * cd /app && /usr/local/bin/python /app/cleanup_unverified_accounts.py --quiet >> /var/log/cron.log 2>&1
# Cron job for cleaning up inactive verified accounts (no logins, no time entries)
# Run monthly on the 1st at 2:00 AM, cleaning accounts older than 90 days
0 2 1 * * cd /app && /usr/local/bin/python /app/cleanup_inactive_accounts.py --min-age 90 --quiet >> /var/log/cron.log 2>&1
# Empty line required at the end