Files
evig/scripts/ops/revampit-cron@close-decisions.timer
T
Mao NakamotoandClaude Opus 4.8 84959214e4 feat(ops): restore the 4 Vercel crons as systemd timers (+ CRON_SECRET)
Retiring Vercel silently killed its 4 cron jobs (close-decisions,
close-it-hilfe-requests, prune-audit-log, wake-recurring-tasks) — nothing was
running them on the box. Re-created them as systemd timers (UTC schedules
matching the old vercel.json) driven by run-cron.sh, which calls the local
/api/cron/* endpoints with Authorization: Bearer $CRON_SECRET and fails non-zero
on any non-200. Also generated + set CRON_SECRET on the box (it was unset, so the
endpoints were publicly triggerable; now they return 401 without the bearer).
All four verified: HTTP 200 end-to-end. Docs in scripts/ops/README.md.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-19 04:01:29 +02:00

11 lines
185 B
SYSTEMD

[Unit]
Description=Schedule RevampIT cron: close-decisions (daily 00:00 UTC)
[Timer]
OnCalendar=*-*-* 00:00:00
Persistent=true
RandomizedDelaySec=120
[Install]
WantedBy=timers.target