It is documented to set up two cron jobs for Magento 2

*/1 * * * * /usr/bin/php /var/www/html/example/web/bin/magento cron:run 
*/1 * * * * /usr/bin/php /var/www/html/example/web/bin/magento setup:cron:run 

What is the difference between those both? Which one is responsible for the indexers?

1 Answer 1


cron:run is responsible for the indexers and all other normal Magento scheduled tasks.

setup:cron:run is responsible for running setup operations for the Web Setup Wizard. If you use the web setup wizard to install extensions or upgrade Magento, this command is what actually allows that to work. Without this command running, the web setup wizard will fail to actually perform any changes.

If you don't use the Web Setup Wizard, the second command is unnecessary.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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