cron: Adapt to 5 minutes recommendation
Update the comment to make clear that we ask for 14 minutes worth of jobs on purpose so at most three parallel cron jobs are running. Signed-off-by: Michael Kuhn <michael@ikkoku.de>
This commit is contained in:
parent
cb81fd5257
commit
ab6a18f420
1 changed files with 3 additions and 2 deletions
5
cron.php
5
cron.php
|
@ -111,8 +111,9 @@ try {
|
||||||
// Work
|
// Work
|
||||||
$jobList = \OC::$server->getJobList();
|
$jobList = \OC::$server->getJobList();
|
||||||
|
|
||||||
// We only ask for jobs for 14 minutes, because after 15 minutes the next
|
// We only ask for jobs for 14 minutes, because after 5 minutes the next
|
||||||
// system cron task should spawn.
|
// system cron task should spawn and we want to have at most three
|
||||||
|
// cron jobs running in parallel.
|
||||||
$endTime = time() + 14 * 60;
|
$endTime = time() + 14 * 60;
|
||||||
|
|
||||||
$executedJobs = [];
|
$executedJobs = [];
|
||||||
|
|
Loading…
Reference in a new issue