generalmagento

Configure scheduled tasks

Magento cron tasks are enabled for cloud images by default. Check if they are working by running this command:

$ sudo cat /etc/cron.d/magento

The output should contain this line if they are enabled:

*/1 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/magento/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /opt/bitnami/magento/var/log/magento.cron.log

If you wish to disable them, just follow the steps below:

  • Edit the /etc/cron.d/magento file:

      $ sudo nano /etc/cron.d/magento
    
  • Comment the following line:

      #*/1 * * * * daemon /opt/bitnami/php/bin/php /opt/bitnami/magento/bin/magento cron:run 2>&1 | grep -v "Ran jobs by schedule" >> /opt/bitnami/magento/var/log/magento.cron.log
    
  • Save the file and exit.

Last modification February 9, 2023