From ab6a18f420d8196ed7ab2199f7ca4ed52f9a80e5 Mon Sep 17 00:00:00 2001 From: Michael Kuhn Date: Sun, 16 Feb 2020 20:50:50 +0100 Subject: [PATCH] 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 --- cron.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cron.php b/cron.php index 64e87656fe..626e9a777d 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 = [];