How to Set Cron in Magento 2

Magento 2 facilitates the feature of cron job that allows to schedule activities ahead of time and thus automates them, saving our time! Some of the examples where an admin needs to set Cron in Magento 2 are reindexing, generating Google sitemaps, customer notifications, updating currency rates, etc.

Get rid of doing important periodic tasks manually. Automate such tasks in your stores by configuring cron job in Magento 2.

There are two methods to set cron in Magento 2:

  1. From SSH
    Open SSH as root user and type crontab -e and add the below commands.
  2. From cPanel
    Cron can be set directly from cPanel by adding the below commands.

Add the Following Commands to Set Cron in Magento 2:

That’s it! Now you may relax while your job gets done automatically. ?

You may review the post or ask any doubts in the comments section below. Hit the 5 stars to appreciate our efforts.

Thank You!

5
(based on 11 Reviews)
How to Set Cron in Magento 2

Sanjay Jethva

Sanjay is a co-founder at Meetanshi. He is a Certified Magento Developer who loves creating Magento E-commerce solutions. Owing to his contributions in Magento Forums and posting solutions, he is among the top 50 contributors of the Magento community in 2019. When he is not engrossed with anything related to Magento, he loves to play cricket.

Leave a Reply

Your email address will not be published. Required fields are marked *