N°4931 Fix background tasks max duration being set to 3 times its periodicity

This commit is contained in:
Stephen Abello
2022-03-14 09:29:53 +01:00
parent b50ba0ad49
commit 93c6cfffda
2 changed files with 17 additions and 9 deletions

View File

@@ -496,6 +496,14 @@ class Config
'source_of_value' => '',
'show_in_conf_sample' => true,
],
'cron_task_max_execution_time' => [
'type' => 'integer',
'description' => 'Backround tasks will use this value (integer) multiplicated by its periodicity (in seconds) as max duration per cron execution. 0 is unlimited time',
'default' => 0,
'value' => 0,
'source_of_value' => '',
'show_in_conf_sample' => false,
],
'cron_sleep' => [
'type' => 'integer',
'description' => 'Duration (seconds) before cron.php checks again if something must be done',