Automation · Scheduling
Cron
Cheat sheet · https://pcornel.dk/topic.php?topic=5349
Answer
Cron schedules use five fields — minute, hour, day of month, month, day of week — such as 0 3 * * 1-5 for 03:00 on weekdays, and tools like crontab.guru help check expressions.
Remember
- Fields: minute hour day-of-month month day-of-week.
- Use crontab.guru to check expressions.
- cron uses the host's time zone.
First checks
crontab -l— entries- flock -n /tmp/job.lock cmd — prevent overlap
journalctl -u cron / grep CRON /var/log/syslog— execution
Verify in this order
cron schedule → command
Where it usually breaks
Trigger → queue accepted → worker lease/pickup → task running → terminal result → target mutation/read-back → effective runtime state → workload.
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=5349