Configure scheduled tasks
Cron jobs allow OroCRM to execute tasks that should be executed at fixed times (for example, sending email to customers or generating reports). Usually, these tasks wouldn’t be performed by visiting a particular URL using your browser. Instead, you’ll configure your operating system to execute some script which performs the desired tasks.
Cron jobs are enabled by default. To edit them, follow these steps:
-
Run the following command to edit the crontab file:
$ sudo nano /etc/cron.d/orocrm
-
Add the following lines to the file. The jobs will be executed at the first minute of every hour. You can modify the timing if you wish:
*/1 * * * * daemon cd /opt/bitnami/orocrm && /opt/bitnami/php/bin/php bin/console oro:cron --env=prod >> /dev/null 2>&1
-
Save the file.