diff --git a/core/config.class.inc.php b/core/config.class.inc.php index 6b9e89173..2d4d6f373 100644 --- a/core/config.class.inc.php +++ b/core/config.class.inc.php @@ -592,9 +592,9 @@ class Config 'source_of_value' => '', 'show_in_conf_sample' => false, ], - 'cron.max_process' => [ + 'cron.max_processes' => [ 'type' => 'integer', - 'description' => 'Maximum number of cron process to run', + 'description' => 'Maximum number of cron processes to run', 'default' => 10, 'value' => 10, 'source_of_value' => '', diff --git a/setup/setuputils.class.inc.php b/setup/setuputils.class.inc.php index cc4a23e9a..3213195d7 100644 --- a/setup/setuputils.class.inc.php +++ b/setup/setuputils.class.inc.php @@ -2045,7 +2045,7 @@ JS return; } // Limit the number of cron process to run in parallel - $iMaxCronProcess = $oConfig->Get('cron.max_process'); + $iMaxCronProcess = $oConfig->Get('cron.max_processes'); $iCount = 1; $iMaxDuration = $oConfig->Get('cron_max_execution_time'); $iTimeLimit = time() + $iMaxDuration; diff --git a/webservices/cron.php b/webservices/cron.php index 23eb900b4..d992d0517 100644 --- a/webservices/cron.php +++ b/webservices/cron.php @@ -191,7 +191,7 @@ function CronExec($oP, $bVerbose, $bDebug=false) $iMaxDuration = MetaModel::GetConfig()->Get('cron_max_execution_time'); $iTimeLimit = $iStarted + $iMaxDuration; $iCronSleep = MetaModel::GetConfig()->Get('cron_sleep'); - $iMaxCronProcess = MetaModel::GetConfig()->Get('cron.max_process'); + $iMaxCronProcess = MetaModel::GetConfig()->Get('cron.max_processes'); if ($bVerbose) {