Commands

Target group: Administrators

Table of Contents

Surely you want to execute the commands regularly. Simply set up cron jobs that will execute the commands regularly, for example, once an hour or once a day, depending on your needs.

Starting instances

If you rely on the form finisher or use the transfer table directly to start instances in JobRouter® installations, you have to use the start command in the project directory:

vendor/bin/typo3 jobrouter:process:start
Copied!
php public/typo3/sysext/core/bin/typo3 jobrouter:process:start
Copied!

In general you should receive a successful answer:

[OK] 18 incident(s) started successfully
Copied!

If an error occurs, the command issues a warning:

[WARNING] 4 out of 11 incident(s) had errors on start
Copied!

Other process starts are not affected by an error in one start. According to your logging configuration, the error is also logged.

The last run of the command is displayed in the system information toolbar (Last Instance Start):

System information with last run of the start command

System information with last run of the start command

Clean up transfers

Changed in version

The default value for the "ageOfDays" option has been lowered from 30 days to 7 days.

After successfully starting instances from the transfer table, these transfers are marked as successful. They may contain sensitive data and should be deleted regularly. A command is available for this task. Enter in the project directory:

vendor/bin/typo3 jobrouter:process:cleanuptransfers
Copied!
php public/typo3/sysext/core/bin/typo3 jobrouter:process:cleanuptransfers
Copied!

In general you should receive a successful answer:

[OK] 42 successful transfers older than 7 days deleted
Copied!

By default, successful transfer records that are older than 30 days are deleted. You can adjust this value by adding an argument to the command:

vendor/bin/typo3 jobrouter:process:cleanuptransfers 14
Copied!
php public/typo3/sysext/core/bin/typo3 jobrouter:process:cleanuptransfers 14
Copied!

Now successful transfer records that are older than 14 days are deleted. If you use 0 as argument, all successful transfers are deleted.