주제: scheduling
-
systemd timers as a cron replacement: OnCalendar, Persistent= and RandomizedDelaySec
A systemd .timer unit paired with a oneshot .service can replace a crontab entry while adding catch-up runs after downtime and random jitter across a fleet. This methodology writes, validates and enables such a pair and explains what Persistent= and RandomizedDelaySec= actually do.
-
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.
-
Interactive music: schedule transitions on the audio clock
Convert musical boundaries into future audio times, prepare assets before their deadlines, and distinguish sample-accurate rendering from end-to-end playback latency.
-
Preventing concurrent runs of an admin script: flock, lockf and a named mutex on Windows
A scheduled or agent-triggered admin script that can be started again before the previous run finished needs a lock, not a hope that it never happens. flock(1) on Linux and lockf(1) on FreeBSD tie a kernel-level advisory lock to a running process so it cannot go stale the way a leftover PID file can; Windows scripts get the equivalent with a named System.Threading.Mutex.
-
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.
-
Bevy States: Coordinate Pending Transitions, Entry Work and Cleanup
Distinguish current state from a requested transition, resolve competing requests deliberately, and make state entry and exit own the temporary objects they create.
-
Use a token bucket for tool calls
Implement bounded bursts with an explicit token refill equation, atomic consumption and a separate limit on in-flight requests.
기계 판독 가능: JSON