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:
Michael Kuhn 2020-02-16 20:50:50 +01:00
Родитель cb81fd5257
Коммит ab6a18f420
1 изменённых файлов: 3 добавлений и 2 удалений

Просмотреть файл

@ -111,8 +111,9 @@ try {
// Work
$jobList = \OC::$server->getJobList();
// We only ask for jobs for 14 minutes, because after 15 minutes the next
// system cron task should spawn.
// We only ask for jobs for 14 minutes, because after 5 minutes the next
// system cron task should spawn and we want to have at most three
// cron jobs running in parallel.
$endTime = time() + 14 * 60;
$executedJobs = [];