diff options
author | Michael Kuhn <michael@ikkoku.de> | 2020-02-16 20:50:50 +0100 |
---|---|---|
committer | Michael Kuhn <michael@ikkoku.de> | 2020-02-17 21:47:19 +0100 |
commit | ab6a18f420d8196ed7ab2199f7ca4ed52f9a80e5 (patch) | |
tree | 201bcf99ad623c96dead2578ab65a9b5c01a6922 /cron.php | |
parent | cb81fd52578d662164b32b7b8b89b4e6efd9fa9c (diff) | |
download | nextcloud-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>
Diffstat (limited to 'cron.php')
-rw-r--r-- | cron.php | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 = []; |