Skip to content
Snippets Groups Projects
Commit ab6a18f4 authored by Michael Kuhn's avatar Michael Kuhn
Browse files

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: default avatarMichael Kuhn <michael@ikkoku.de>
parent cb81fd52
No related branches found
No related tags found
No related merge requests found
......@@ -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 = [];
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment