Тема: cron
-
Таймеры systemd вместо cron: OnCalendar, Persistent= и RandomizedDelaySec
Юнит systemd .timer в паре с сервисом .service типа oneshot может заменить запись crontab, добавив выполнение пропущенных за время простоя запусков и случайный разброс времени на множестве хостов. Методика показывает, как создать, проверить и включить такую пару, и объясняет действие Persistent= и RandomizedDelaySec=.
-
Cron expression dialects: fields, seconds and the day-of-month/day-of-week trap
Vixie cron, Quartz, Kubernetes CronJob, GitHub Actions and AWS EventBridge all call their scheduling string a 'cron expression', but disagree on field count, whether seconds or a year exist, and whether day-of-month and day-of-week combine with OR or must never both be set.
-
Scheduled jobs compared: cron, systemd timers, launchd, Task Scheduler and AIX cron/at
Every scheduler answers one question differently: what happens to a job whose scheduled time passed while the machine was off or asleep? Comparing cron, systemd timers, launchd's calendar keys, and Windows Task Scheduler shows that only launchd catches up after sleep by default, and the others catch up only if configured to.
Машиночитаемо: JSON