2 defined(
'TYPO3_MODE') or die();
5 $GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['GLOBAL']['cliKeys']['scheduler'] = array(
7 $schedulerCliController = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Scheduler\Controller\SchedulerCliController::class);
8 $schedulerCliController->run();
16 if (!empty(
$extConf[
'showSampleTasks'])) {
17 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Example\TestTask::class] = array(
18 'extension' =>
'scheduler',
19 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:testTask.name',
20 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:testTask.description',
21 'additionalFields' => \TYPO3\CMS\Scheduler\Example\TestTaskAdditionalFieldProvider::class
23 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Example\SleepTask::class] = array(
24 'extension' =>
'scheduler',
25 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:sleepTask.name',
26 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:sleepTask.description',
27 'additionalFields' => \TYPO3\CMS\Scheduler\Example\SleepTaskAdditionalFieldProvider::class
32 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionTask::class] = array(
33 'extension' =>
'scheduler',
34 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:cachingFrameworkGarbageCollection.name',
35 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:cachingFrameworkGarbageCollection.description',
36 'additionalFields' => \TYPO3\CMS\Scheduler\Task\CachingFrameworkGarbageCollectionAdditionalFieldProvider::class
40 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\FileStorageIndexingTask::class] = array(
41 'extension' =>
'scheduler',
42 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:fileStorageIndexing.name',
43 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:fileStorageIndexing.description',
44 'additionalFields' => \TYPO3\CMS\Scheduler\Task\FileStorageIndexingAdditionalFieldProvider::class
48 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\FileStorageExtractionTask::class] = array(
49 'extension' =>
'scheduler',
50 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:fileStorageExtraction.name',
51 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:fileStorageExtraction.description',
52 'additionalFields' => \TYPO3\CMS\Scheduler\Task\FileStorageExtractionAdditionalFieldProvider::class
58 if (TYPO3_OS !==
'WIN') {
59 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\RecyclerGarbageCollectionTask::class] = array(
60 'extension' =>
'scheduler',
61 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:recyclerGarbageCollection.name',
62 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:recyclerGarbageCollection.description',
63 'additionalFields' => \TYPO3\CMS\Scheduler\Task\RecyclerGarbageCollectionAdditionalFieldProvider::class
71 if (is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class][
'options'])) {
79 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class] = array(
80 'extension' =>
'scheduler',
81 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:tableGarbageCollection.name',
82 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:tableGarbageCollection.description',
83 'additionalFields' => \TYPO3\CMS\Scheduler\Task\TableGarbageCollectionAdditionalFieldProvider::class,
89 if (!is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class][
'options'][
'tables'][
'sys_log'])) {
90 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class][
'options'][
'tables'][
'sys_log'] = array(
91 'dateField' =>
'tstamp',
96 if (!is_array(
$GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class][
'options'][
'tables'][
'sys_history'])) {
97 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\TableGarbageCollectionTask::class][
'options'][
'tables'][
'sys_history'] = array(
98 'dateField' =>
'tstamp',
104 $GLOBALS[
'TYPO3_CONF_VARS'][
'SC_OPTIONS'][
'scheduler'][
'tasks'][\TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableTask::class] = array(
105 'extension' =>
'scheduler',
106 'title' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:optimizeDatabaseTable.name',
107 'description' =>
'LLL:EXT:scheduler/Resources/Private/Language/locallang.xlf:optimizeDatabaseTable.description',
108 'additionalFields' => \TYPO3\CMS\Scheduler\Task\OptimizeDatabaseTableAdditionalFieldProvider::class