Share With

Magento Recommends 3 type of cron are introduced in Magento-2 as given below

*/1 * * * * php -c /path/to/magento2/bin/magento cron:run
*/1 * * * * php -c /path/to/magento2/bin/magento/update/cron.php
*/1 * * * * php -c /path/to/magento2/bin/magento setup:cron:run

but we do not need to configure all of them,

1st cron command will work for reindexes indexers, send automated e-mails, generates the sitemap, and so on.
rest 2 cron commands are used by the Component Manager and System Upgrade.

To configure CRON, edit crontab command line
crontab -u magento_user -e

add this line at the end of file
* * * * * php -c /path/to/magento2/bin/magento cron:run
# this will run every minute

if you do not want every minute you can set every 5 min as given below:
*/5 * * * * php -c /path/to/magento2/bin/magento cron:run

Get in Touch

Avatar photo
Author

Amit Samsukha, CTO at EmizenTech and a proud member of the Forbes Technology Council, is recognized as an innovator and community leader in India’s tech ecosystem. With over 12 years of experience in the technology sector, he plays a key role in driving product strategy, global sales and marketing, and business growth. Amit has led numerous successful projects across the eCommerce and AI development landscapes for clients in India and the U.S. His strategic vision and technical expertise continue to shape the future of digital transformation for businesses worldwide. Connect with Team Amit here.

whatsapp