Login
You're viewing the functional.cafe public feed.
  • Nov 1, 2026, 6:22 PM

    @casandro @mattblaze @hzulla wrapping scripts or modifying scripts isn't what I'd call complex and is "self-declaring" and doesn't change the underlying behaviour of cron, which is something you mostly don't want because a lot of things it does *must* be done at exact times.
    If you modified the syntax of crontab so particular lines had the time dither switch that would be potentially complex, if you change defaults so you had to specify "exact" that would be even worse. It's likely not complex in implementation within cron, it's complex in implementation in the real world where this stuff is old and established and making changes like that could be misconstrued etc.

    💬 1🔄 0⭐ 0

Replies

  • Nov 5, 2026, 5:40 AM

    @synx508 OpenBSD's cron lets you specify ~ in time specs to randomize when something runs, "to avoid a thundering herd at the top and bottom of the hour". Is that not a normal cron feature these days or just not widely enough used?

    man.openbsd.org/crontab.5
    > A random value for a field may be obtained using the ‘~’ character. A value is generated every time the tab is loaded. On its own, it denotes a random value appropriate for the field. It can also be used in a range to make the interval more specific. If either of the numbers in a range are omitted, the appropriate limit (low or high) for that field will be used. For example, both “0~30” and “~30” in the minute field would result in a random value between 0 and 30.

    @casandro @mattblaze @hzulla

    💬 0🔄 0⭐ 0