pihole-speedtest icon indicating copy to clipboard operation
pihole-speedtest copied to clipboard

[Info] Crontab expression in Testing interval

Open corasaniti opened this issue 11 months ago • 1 comments

Can I enter a crontab expression in the Testing interval field? For example I would like to run my speedtest every 2 hours at minute 10 10 */2 * * *

With the latest versions the scheduling has been changed at minute 30. This isn't good for me because I have another JOB running and I would like to be able to change the scheduling

Thanks in advance

corasaniti avatar Mar 05 '24 10:03 corasaniti

Currently in docker, the testing interval starts when the last scheduled test was run. This means you can disable the schedule (by setting it to 0), wait until at least 2 hours have elapsed since the last scheduled run, wait until the next 10 minutes past an hour, then set the schedule to 2. The tests will now run every 2 hours at 10 minutes past the hour.

Being able to directly specify the expression is an interesting idea!

ipitio avatar Mar 05 '24 13:03 ipitio