Skip to content

Commit

Permalink
Merge pull request #19506 from michaelkuhn/cron-5-min
Browse files Browse the repository at this point in the history
cron: Adapt to 5 minutes recommendation
  • Loading branch information
blizzz authored Feb 19, 2020
2 parents eb28572 + ab6a18f commit 29f610e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cron.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,9 @@
// 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 = [];
Expand Down

0 comments on commit 29f610e

Please sign in to comment.