TYPO3 v15 dev-main snapshot ()

This commit is contained in:
2026-08-10 22:31:38 +02:00
commit 4392dbe2ce
142 changed files with 11824 additions and 0 deletions
@@ -0,0 +1,133 @@
:navigation-title: Cron Job Set up
.. include:: /Includes.rst.txt
.. _cron-job:
==================================================
Setting up the cron job to run the scheduler tasks
==================================================
Tasks registered with the Scheduler can be run manually from the backend
module. However this is of limited use. To really benefit from the
Scheduler, it must be set up on the server to run regularly. The
following chapters describe how to set this up on Unix or Unix-like
system (including Mac OS X) and on Windows.
.. _frequency:
Choosing a frequency
====================
Whatever system the Scheduler will run on, the first step is to define
the frequency at which it should run. The Scheduler script should set
up to run pretty often, but not unnecessarily often either. The
frequency should be that of the most often running task or some
frequency that fits all tasks.
For example, if you have some tasks running every quarter of an hour
and some others running every hour, it is useless to have the
Scheduler run every 5 minutes. On the other hand, if you have tasks
scheduled to run every 10 minutes and others every 15 minutes, you
will want to run the Scheduler every 5 minutes. Indeed, if you run it
only at 10-minute intervals, it will run assuming it is 8 o'clock
at 08:10, 08:20, 08:30, etc. So the tasks that should run at 08:15
will actually run 5 minutes late.
.. _unix-mac:
On Unix and Mac OS X
====================
On such systems the Scheduler must be set up as a cron job. There are
several ways to achieve this, although the simplest is probably to add
it to some user's crontab. Edit that user's crontab using:
.. code-block:: bash
crontab -e
and add a line like
.. tabs::
.. group-tab:: Composer-based installation
.. code-block:: bash
*/15 * * * * /usr/local/bin/php /home/user/www/vendor/bin/typo3 scheduler:run
.. group-tab:: Legacy installation
.. code-block:: bash
*/15 * * * * /usr/local/bin/php /home/user/www/typo3/sysext/core/bin/typo3 scheduler:run
Save the modified crontab. Obviously, the paths have to be adapted to
your system. The above command will call up the Scheduler every 15
minutes.
.. seealso::
See :ref:`scheduler-shell-script` for more information about
calling the scheduler from the command line.
If you are editing system crontabs (for example :file:`/etc/crontab`
and :file:`/etc/cron.d/*` ), there will be one additional parameter
to enter, i.e. the user with which the job should run. Example:
.. tabs::
.. group-tab:: Composer-based installation
.. code-block:: bash
*/15 * * * * www /usr/local/bin/php /home/user/www/vendor/bin/typo3 scheduler:run
.. group-tab:: Classic installation
.. code-block:: bash
*/15 * * * * www /usr/local/bin/php /home/user/www/typo3/sysext/core/bin/typo3 scheduler:run
This will run the job as user "www".
If you are not familiar with cron syntax, refer to some Unix
administration book or start with the Wikipedia page about it
(https://en.wikipedia.org/wiki/Cron).
.. _windows:
On Windows
==========
On Windows, cron jobs are called "Scheduled tasks" and run with the
:file:`schtasks` utility. :file:`SchTasks.exe` performs operations
similar to those provided by Scheduled Tasks in the Control Panel. You
can use either tool to create, delete, configure, or simply display
scheduled tasks.
Assuming you want to run the TYPO3 Scheduler every 15 minutes, use the
following command line to create a new task:
.. tabs::
.. group-tab:: Composer-based installation
.. code-block:: bash
schtasks /create /sc minute /mo 15 /tn "T3scheduler" /tr "c:\winstaller\php\php.exe c:\winstaller\htdocs\quickstart\vendor\bin\typo3 scheduler:run"
.. group-tab:: Classic installation
.. code-block:: bash
schtasks /create /sc minute /mo 15 /tn "T3scheduler" /tr "c:\winstaller\php\php.exe c:\winstaller\htdocs\quickstart\typo3/sysext/core/bin/typo3 scheduler:run"
At task creation you will be prompted to give a password or you can
use the :code:`/u` and :code:`/p` switches to provide user and
password information. Note that the user must be a member of the
Administrators group on the computer where the command will run.
The full reference for :file:`schtasks` is available at:
https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/schtasks
+15
View File
@@ -0,0 +1,15 @@
.. include:: /Includes.rst.txt
.. _installation:
====================
Installation & Setup
====================
.. toctree::
:maxdepth: 5
:titlesonly:
:glob:
Installing/Index
SetupCheck/Index
CronJob/Index
@@ -0,0 +1,75 @@
.. include:: /Includes.rst.txt
.. _installing:
============
Installation
============
This extension is part of the TYPO3 Core, but not installed by default.
.. contents:: Table of contents
:local:
.. _installing-composer:
Installation with Composer
==========================
Check whether you are already using the extension with:
.. code-block:: bash
composer show | grep scheduler
This should either give you no result or something similar to:
.. code-block:: none
typo3/cms-scheduler v12.4.11
If it is not installed yet, use the ``composer require`` command to install
the extension:
.. code-block:: bash
composer require typo3/cms-scheduler
The given version depends on the version of the TYPO3 Core you are using.
.. _installing-classic:
Classic installation without Composer
=====================================
In an installation without Composer, the extension is already shipped but might
not be activated yet. Activate it as follows:
#. In the backend, navigate to the :guilabel:`System > Extensions`
module.
#. Click the :guilabel:`Activate` icon for the Scheduler extension.
.. figure:: /Images/InstallActivate.png
:class: with-border
:alt: Extension manager showing Scheduler extension
Extension manager showing Scheduler extension
.. _installing-cnext:
Next steps
==========
Once the extension is installed, the following setting is available:
- **Maximum lifetime** : it may happen that a task crashes while
executing. In this case it will stay in a state marked as "running".
That may prevent it from being executed again, if parallel executions
are denied (see "Tasks execution" above). The maximum lifetime
parameter ensures that old executions are removed after a while. The
lifetime is expressed in **minutes** . The default is 15 minutes.
.. figure:: /Images/ExtensionConfiguration.png
:alt: Extension configuration
Configuring the extension settings
@@ -0,0 +1,26 @@
:navigation-title: Setup Check
.. include:: /Includes.rst.txt
.. _setup-check:
=============================================
Checking the setup of the scheduler extension
=============================================
The scheduler check provides useful information for setting up cronjobs.
.. figure:: /Images/SetupCheckButton.png
:alt: The TYPO3 Backend module "Scheduler" with Button "Setup check" highlighted
Click on the button :guilabel:`Setup check` to open the popup
.. figure:: /Images/SetupCheck.png
:alt: The "Setup check" modal popup in module "Scheduler"
The first message shows when the scheduler was last run. If it was never run
there will be a warning displayed.
The second messages tells you which command (with absolute paths) must be
executed by the cron job.
The third message shows information about the current server time.