Configure scheduled tasks
Magento cron tasks are enabled for cloud images by default. Check if they are working by running this command:
$ sudo crontab -l
The output should contain these lines if they are enabled:
* * * * * /opt/bitnami/apps/magento/htdocs/bin/magento-cli cron:run -vvv 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-cron.log #magento-cron
* * * * * /opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/update/cron.php 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-update-cron.log #magento-update-cron
* * * * * /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:cron:run -vvv 2>&1 >> /opt/bitnami/apps/magento/htdocs/var/log/magento-setup-cron.log #magento-setup-cron
If you wish to disable it, just follow the steps below:
Edit the /etc/crontab file:
$ sudo crontab -e
Comment the following lines:
#* * * * * /opt/bitnami/apps/magento/htdocs/bin/magento-cli cron:run #* * * * * /opt/bitnami/php/bin/php /opt/bitnami/apps/magento/htdocs/update/cron.php #* * * * * /opt/bitnami/apps/magento/htdocs/bin/magento-cli setup:cron:run
Save the file and exit.