floraison / fugit

time tools (cron, parsing, durations, ...) for Ruby, rufus-scheduler, and flor
MIT License
353 stars 29 forks source link

Introduce OpenBSD cron ~ notation #80

Open jmettraux opened 1 year ago

jmettraux commented 1 year ago
     A random value (within the legal range) may be obtained by using the `~'
     character in a field.  The interval of the random value may be specified
     explicitly, for example "0~30" will result in a random value between 0
     and 30 inclusive.  If either (or both) of the numbers on either side of
     the `~' are omitted, the appropriate limit (low or high) for the field
     will be used.
andrew-solomon-oleeo commented 4 months ago

This would be a welcome feature to avoid spike in load on cicd servers:

https://forum.gitlab.com/t/pipelines-with-random-schedule/86076