Merge pull request #19506 from michaelkuhn/cron-5-min
cron: Adapt to 5 minutes recommendation
This commit is contained in:
commit
29f610edfd
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 New Issue