[FEATURE] Add interval presets for cron command field of scheduler task
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-44297-IntervalPresetsForCronCommandOfSchedulerTask.rst
1 .. include:: ../../Includes.txt
2
3 =====================================================================
4 Feature: #44297 - Interval presets for cron command of scheduler task
5 =====================================================================
6
7 See :issue:`44297`
8
9 Description
10 ===========
11
12 To support administrators creating scheduler tasks, presets have been added to the frequency field.
13
14 The default presets are:
15
16 .. code-block:: php
17
18         $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['scheduler']['frequencyOptions'] = [
19                 '0 9,15 * * 1-5' => 'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:command.example1',
20                 '0 */2 * * *' =>  'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:command.example2',
21                 '*/20 * * * *' =>  'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:command.example3',
22                 '0 7 * * 2' =>  'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:command.example4',
23 ];
24
25 .. index:: Backend, ext:scheduler