cron-utils icon indicating copy to clipboard operation
cron-utils copied to clipboard

Support random time intervals

Open a1kaigorodov opened this issue 2 years ago • 2 comments

On OpenBSD, you can use the ~ symbol to specify random time intervals. You can find more information about this in the crontab(5) manual.

It would be great if the library could parse these cron expressions and translate them into an ordinal cron expressions with a given Random instance.

a1kaigorodov avatar Oct 10 '23 10:10 a1kaigorodov

@a1kaigorodov thanks! This will be a great addition.

jmrozanec avatar Oct 10 '23 11:10 jmrozanec

that would really be great if that could be implemented. A requirement would be that I can give some hash value to the isMatch, nextExecution and lastExecution as input so that the random is reproducible.

mawinter69 avatar May 07 '24 16:05 mawinter69