Feature #66532
closedSchedule tasks randomly
0%
Description
State:
It is already possible to schedule tasks by cron-syntax, seconds or shortcuts like @daily, @hourly, ...
Problem:
Some tasks should not be run at the same time on all machines like @daily does.
This could for example unburden TER-repositories.
Idea:
Make it possible to start a task randomly within a day: @dailyrandom
Or use a little more concise approach for random tasks: expected runtime, task time.
Then the job should be scheduled randomly between starttime and starttime + tasktime - runtime.
Updated by Xavier Perseguers over 9 years ago
Idea for that: add a "generate cron command" next to the field so that it just generates a random "daily" cron definition. This way we don't have to have much "magick" in it.
Updated by Georg Ringer over 4 years ago
- Status changed from New to Resolved
This is easily possible since 9.5 with #44297.
Just create a simple extension and use something like that in ext_localconf.php
$rand = '0 7 * * ' . mt_rand(0,10); $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['frequencyOptions'][$rand] = 'random';
I am closing this issue
Updated by Georg Ringer over 4 years ago
- Related to Feature #44297: Add interval presets to the "Add task" dialog of the scheduler added