wajid hussain's picture

Magento 2 comes with many awesome features. In Magento 1 & 2, Cron job is one of the most stunning feature. Cron helps Magento 2 store owners to setup commands which will run systematically at a set time and date. In Magento, Cron jobs run scheduled tasks, reindexing, generating e-mails, generating newsletters, sitemaps and more. Basically the cron executes internal Magento cronjob manager and manages which cron jobs are executed and when.

Cron is a vital part of Magento. Cron configuration in Magento 2 is highly important because many Magento features are based on scheduled activities, possible only via cron jobs. Here is the list of some of them:
 

  • Reindexing
  • Private sales (Magento Enterprise Edition)
  • Automatic update of currency rates
  • Magento emails
  • Customers alerts and notifications
  • Generating Google sitemaps
  • Catalog price rules
  • Newsletters



Run cron as the Magento file system owner. Do not run cron as root. Running cron as the web server user is not a good practice. It is also required to mention that in UNIX systems, scheduled tasks depend on crontab.

Read Complete Tutorial Here: http://www.cloudways.com/blog/magento-2-cron-job/

Forum: 

Add new comment