Merge pull request #19506 from michaelkuhn/cron-5-min

cron: Adapt to 5 minutes recommendation
This commit is contained in:
blizzz 2020-02-19 10:37:50 +01:00 committed by GitHub
commit 29f610edfd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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 = [];