1
0

host.crontab 825 B

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