Thank you for using the English version of the JTL-Guide!
We are currently still building up the English documentation; not all sections have been translated yet. Please note that there may still be German screenshots or links to German pages even on pages that have already been translated. This guide mostly addresses English speaking users in Germany.
We are currently still building up the English documentation; not all sections have been translated yet. Please note that there may still be German screenshots or links to German pages even on pages that have already been translated. This guide mostly addresses English speaking users in Germany.
Note: On 1 September 2024, JTL introduced new editions that bundle most of the previous individual services into different packages. In order for you to continue working as smoothly as possible, existing customers were automatically switched to the package configuration that best matched their existing contract. The individual packages differ in terms of limitations and/or range of functions. Therefore, some of the features described in the JTL-Guide may not be available to you as part of your booked JTL edition. You can change your package configuration in your JTL customer account. Find out more about the new editions and packages here. Check our FAQ for frequently asked questions about the product editions.
Managing Cron
Your task/initial situation
You would like JTL-Shop to carry out background tasks that ensure the smooth operation of your online shop. These tasks should be done at a time that suits you well, so you want to specify the time and frequency.
Cron tasks
Cron tasks allow you to carry out scheduled background tasks. This avoids resource-intensive processes during peak times.
The Cron page is accessible via Administration > System > Cron.
Please note: This is only a pseudo Cron method that may in some cases work unreliably since the tasks are only executed when the online shop is called up. With real Cron jobs, scheduled tasks are processed in set time intervals. Please contact your hosting provider if you would like to use real server-based Cron tasks.
Overview of queue entries
Queue entries are a list of all Cron jobs that still need to be carried out.
By default, two task types have already been created:
When you create further entries, they will also be listed here.
Creating a new queue entry
You can add more entries to the existing ones.
- Switch to the tab Create queue entry.
- Under Type, select the desired task.
- Into Frequency, enter how many hours the interval for this Cron task should be.
- Enter the desired Start date and Start time. For tasks that take a lot of resources, we recommend scheduling the Cron task for some time during the night when there will probably be very few visitors present. Ideally, the start time should be just after the nightly backup.
Settings
In the settings, you can activate the execution of the freshly created Cron taks and specify when it will be triggered.
- Switch to the Settings tab.
- If you have not already done so, activate the setting Pseudo Cron Method to make sure the Cron tasks will be carried out accordingly.
- For Start server-to-server with every Xth call, specify the interval in which the created Cron jobs are to be triggered in the queue. The more visitors there are in your online shop, the higher the value should be.
Example: You created a Cron task of the type Customer data anonymisation and set a start time of 00:00 and a frequency of 24 hours. Pseudo Cron is enabled and Start server-to-server with every Xth call is set to 10. With every tenth request to your online shop, e.g. by visitors or bots, JTL-Shop checks for open queue entries. If some are found, the shop checks whether the conditions for the start time and frequency are met. If yes, the corresponsing entries will be processed.