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.

Follow these steps:

  • Run the following command to edit the crontab file:

      $ sudo crontab -e
  • Add the following lines to the file. The jobs will be executed the first minute of every hour. You can modify the timing if you wish:

      *1/ * * * * /opt/bitnami/php/php /opt/bitnami/apps/orocrm/htdocs/bin/console oro:cron --env prod >> /dev/null
  • Save the file.

Last modification April 8, 2020