Commands

Target group: Administrators

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.

Synchronise tables

To synchronise the tables from JobRouter installations in TYPO3 a command is available. Run the following command in the project directory:

vendor/bin/typo3 jobrouter:data:sync
Copied!
public/typo3/sysext/core/bin/typo3 jobrouter:data:sync
Copied!

Hopefully you will receive a successful response:

[OK] 2 table(s) processed
Copied!

You can also synchronise just one table:

vendor/bin/typo3 jobrouter:data:sync jobs
Copied!
public/typo3/sysext/core/bin/typo3 jobrouter:data:sync jobs
Copied!

Where jobs is the handle of the table.

It is also possible to force the synchronisation of one or all tables. By default, only changed datasets are synchronised. Use the force option:

vendor/bin/typo3 jobrouter:data:sync --force
Copied!
public/typo3/sysext/core/bin/typo3 jobrouter:data:sync --force
Copied!

If an error occurs, the command issues a warning:

[WARNING] 1 out of 2 table(s) had errors during processing
Copied!

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

The last run of the command is shown in the system information toolbar (Last Data Sync.):

System information with last run of the sync command

System information with last run of the sync command

Transmit data sets

If you use the transfer table to transmit JobData data sets to a JobRouter® installation must also use the transmit command from the project directory:

vendor/bin/typo3 jobrouter:data:transmit
Copied!
public/typo3/sysext/core/bin/typo3 jobrouter:data:transmit
Copied!

In general you should receive a successful answer:

[OK] 13 transfer(s) transmitted successfully
Copied!

If an error occurs, the command issues a warning:

[WARNING] 2 out of 6 transfer(s) had errors on transmission
Copied!

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

The last run of the command is shown in the system information toolbar (Last Data Transmiss.):

System information with last run of the transmit command

System information with last run of the transmit command

Clean up transfers

After successfully transmitting data sets 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:

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

In general you should receive a successful answer:

[OK] 23 successful transfers older than 30 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:data:cleanuptransfers 7
Copied!
public/typo3/sysext/core/bin/typo3 jobrouter:data:cleanuptransfers 7
Copied!

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