summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Kuhn <michael@ikkoku.de>2020-02-16 20:50:50 +0100
committerMichael Kuhn <michael@ikkoku.de>2020-02-17 21:47:19 +0100
commitab6a18f420d8196ed7ab2199f7ca4ed52f9a80e5 (patch)
tree201bcf99ad623c96dead2578ab65a9b5c01a6922
parentcb81fd52578d662164b32b7b8b89b4e6efd9fa9c (diff)
downloadnextcloud-server-ab6a18f420d8196ed7ab2199f7ca4ed52f9a80e5.tar.gz
nextcloud-server-ab6a18f420d8196ed7ab2199f7ca4ed52f9a80e5.zip
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>
-rw-r--r--cron.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/cron.php b/cron.php
index 64e87656fe4..626e9a777d6 100644
--- a/cron.php
+++ b/cron.php
@@ -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 = [];