4 ms·
A loner straightforward solution - albeit not supported by schedulers like cron with start times denoted by fixed, absolute values - is to use non-recurring in
by ComputerGuru 6y ago
A loner straightforward solution - albeit not supported by schedulers like cron with start times denoted by fixed, absolute values - is to use non-recurring intervals.
Eg run a task at intervals of 86413 seconds
- CameronNemo 6y agoThe snooze scheduler* has a random delay feature. * https://github.com/leahneukirchen/snooze https://github.com/leahneukirchen/snooze
- klodolph 6y agoIt's why you see a bunch of cron jobs that start off with a random sleep. For example, certbot's cron: perl -e 'sleep int(rand(43200))' && certbot -q renew
- seanwilson 6y agoSeems a bad idea in terms of the accuracy of your logs e.g. so you might not notice if the command you want to run is starting to run unusually long some days because of some error.