Configuring Cron for old Docker build
The Cron job scheduler is a component of the Linux operating system. It is used to run certain scripts on a server at the right time, according to a schedule.
Starting with version 5.1.0 there is a special script that is responsible for running the background tasks (it is located in the containerphp8):
It can be executed manually or set to run on the Cron scheduler.
We recommend that you first test the script in manual mode. To do this, run the script
The script will write information in the log, check that it has no errors:
💡 Make sure that the user haswww-data have write rights to the folderlogs
Let's set up a launchrun-scheduled-tasks.php for every minute.
Open the Cron settings file
Add a line
Save the file.
Go to Passwork under the administrator and open the Background tasks page.
If configured correctly, you will see a message that the scheduler is configured.
![Document image Document image](https://images.archbee.com/jvwmQL6VASLd-norgNd8V/g7CXo8xtEbh9QGvCYbuSo_image.png?format=webp)
If you see a message that the scheduler is not configured, runtime errors can be found in the log file/server/sites/prod/app/logs/run-command.log. It can be sent to Passwork Technical Support for details.
To view the crone log, use the command