| 1234567891011121314151617 |
- # IRDB scheduler — host crontab
- # ============================================================
- # Drives the periodic batch jobs by poking /internal/jobs/tick
- # every minute. The tick endpoint dispatches whichever jobs are
- # due (recompute-scores, cleanup-audit, enrich-pending,
- # refresh-geoip).
- #
- # Install with:
- # sudo cp examples/scheduler/host.crontab /etc/cron.d/irdb
- # sudo chmod 644 /etc/cron.d/irdb
- #
- # Or copy into a user crontab via `crontab -e`. Set INTERNAL_JOB_TOKEN
- # in /etc/default/irdb or similar; the example below assumes localhost.
- # Run every minute. -m 280 caps the request at just under the
- # default cron interval so we never queue overlapping ticks.
- * * * * * root curl -sf -m 280 -X POST -H "Authorization: Bearer $INTERNAL_JOB_TOKEN" http://localhost:8081/internal/jobs/tick > /dev/null
|