How to Disable Cron in Adobe Commerce?
Cron jobs in Adobe Commerce (formerly Magento Commerce) handle tasks like indexing, cache cleaning, and email notifications. Sometimes, you may need to disable them during maintenance. Here’s how:
Steps to Disable Cron Jobs
1. Log in via SSH
Use SSH to access your Adobe Commerce environment:
ssh <username>@<host>
Replace <username>
and <host>
with your environment details.
2. Disable Cron Jobs
Run this command in the root directory of your Adobe Commerce installation to stop cron jobs:
./vendor/bin/ece-tools cron:disable
3. Perform Maintenance
With cron disabled, you can safely perform updates or other maintenance tasks.
4. Re-enable Cron Jobs
Once maintenance is complete, re-enable cron jobs with this command:
./vendor/bin/ece-tools cron:enable
Conclusion
Disabling and re-enabling cron jobs in Adobe Commerce is easy using ece-tools
. Always re-enable cron jobs after maintenance to keep your site running smoothly.