The documentation for Magento 2 (http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-cron.html) states that there should be three cron entries:

* * * * * /usr/bin/php /var/www/magento2/bin/magento cron:run | grep -v "Ran jobs by schedule" >> /var/www/magento2/var/log/magento.cron.log
* * * * * /usr/bin/php /var/www/magento2/update/cron.php >> /var/www/magento2/var/log/update.cron.log
* * * * * /usr/bin/php /var/www/magento2/bin/magento setup:cron:run >> /var/www/magento2/var/log/setup.cron.log

Magento state that the jobs do the following:

The first command (magento cron:run) reindexes indexers, send automated e-mails, generates the sitemap, and so on. Usually it’s associated with the PHP command line .ini file. The other two commands are used by the Component Manager and System Upgrade.

I get the magento cron:run entry but can somebody please elaborate what the other two cron jobs do in more detail? Are these needed for a production store?



If I remember right:

  • update/cron.php is used to update the composer components automatically via Cron
  • bin/magento setup:cron:run is used to update the Magento application automatically via Cron
  • 1
    Thank you. Seems odd they would suggest setting that up... – Paul Nov 14 '16 at 14:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.