Running the scheduler: typo3 scheduler:run

The scheduler provides a PHP shell script designed to be run using TYPO3's command-line dispatcher. To try and run that script a first time, type the following command.

vendor/bin/typo3 scheduler:run
Copied!
typo3/sysext/core/bin/typo3 scheduler:run
Copied!

See also TYPO3 Explained: Run a command from the command line.

Show help

In order to show help:

vendor/bin/typo3 scheduler:run --help
Copied!
typo3/sysext/core/bin/typo3 scheduler:run --help
Copied!

Providing options to the shell script

The shell scripts accepts a number of options which can be provided in any order.

--task (-i)

To run a specific scheduler task you need to provide the uid of the task:

# Run task with uid 42
vendor/bin/typo3 scheduler:run --task=42

# Run tasks with uid 3 and 14
vendor/bin/typo3 scheduler:run --task=3 --task=14
Copied!
# Run task with uid 42
typo3/sysext/core/bin/typo3 scheduler:run --task=42

# Run tasks with uid 3 and 14
typo3/sysext/core/bin/typo3 scheduler:run --task=3 --task=14
Copied!

The tasks will be executed in the order in which the parameters are provided.

-f

To run a task even if it is disabled (or not scheduled to be run yet), you need to provide the force option:

# Run task with uid 42, even if disabled
vendor/bin/typo3 scheduler:run --task=42 -f
Copied!
# Run task with uid 42, even if disabled
typo3/sysext/core/bin/typo3 scheduler:run --task=42 -f
Copied!

This will also run the task with uid 42 if it is disabled.

-v

A single -v flag will output errors only. Two -vv flags will also output additional information:

# Run task with uid 42, with detailed stack traces
vendor/bin/typo3 scheduler:run --task=42 -vv
Copied!
# Run task with uid 42, with detailed stack traces
typo3/sysext/core/bin/typo3 scheduler:run --task=42 -vv
Copied!