I have installed the cron job as proposed. Now I'm wondering if there are reasons when I should disable it temporarily, so that nothing gets in conflict. Is that necessary at all or is Magento able to dismiss cron jobs when needed?

Do you disable them at any time? During updates or reindexing or whatever?

If so, how do you do that? Do you evaluate the existence of the var/maintenance.flag file in your crontab for the maintenance mode?

  • Magento cron jobs will not execute when maintenance mode is enabled.
    – paj
    Commented Jan 8, 2021 at 11:02

1 Answer 1


You can disable magento cronjobs anytime you want by using this command:

php bin/magento cron:remove

To re-enable cronjobs, run this command:

php bin/magento cron:install

The issue that you will face is,

  • no auto indexing will perform after you disable crons,
  • no catalog rules will apply
  • no price index will run
  • no custom cronjob will execute (Added by any module)

You can temporarily disable cronjob, if you are performing anything like indexing or update. But never think about disabling cronjob permanently, scheduling cronjobs is recommended by Magento.

  • 2
    I found the answer I was looking for. I had created a script to perform bulk updates manually, but I kept encountering MySQL Deadlock issues because indexing was automatically executed by cron. Disabling cron and running it manually as a solution resolved the issue without any problems. Thank you.
    – madagaskar
    Commented Apr 3 at 22:30

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.