Magento cron not running is one of the quietest ways a store breaks. The home page loads, checkout works, and the admin shows no warning. Behind that, order emails sit in a queue, indexers on “Update by Schedule” stop updating, sitemaps go stale and catalog price rules stop applying. Most store owners find out from a customer who never got an order confirmation.
Below is how our team checks cron on a Magento 2.4 store by hand, the causes we see most often, and how to fix each one. At the end we cover a free module we wrote that tells you the next time cron stops.
Magento cron not running: what stops working
Magento expects one system cron entry that calls bin/magento cron:run every minute. Each run reads the crontab.xml files of every installed module, writes upcoming jobs into the cron_schedule table and runs the ones that are due. When that system entry is gone, nothing in Magento runs on a timer. A few examples from core:
- Sales emails. With Stores > Configuration > Sales > Sales Emails > General Settings > Asynchronous sending enabled, order, invoice and shipment emails are sent by the
sales_send_order_emails,sales_send_order_invoice_emailsandsales_send_order_shipment_emailsjobs. No cron, no emails. - Indexers. Indexers in “Update by Schedule” mode are kept current by the
indexer_update_all_viewsjob. Price and stock changes stop reaching the storefront. - Everything else on a timer. Sitemap generation, currency rate imports, catalog rule updates, newsletter queues and the cleanup of old quotes and logs.
How to check cron by hand
Run the commands from the Magento root as the user that owns the Magento files. For the SQL, use a MySQL client on the store database. Magento writes cron times in UTC, so compare them with UTC_TIMESTAMP(), not NOW().
1. When did a job last start or finish?
SELECT MAX(executed_at), MAX(finished_at), UTC_TIMESTAMP() FROM cron_schedule;
On a healthy store both dates are a minute or two old. Hours or days old means cron has stopped. An empty table on a live store is just as bad: by default Magento keeps successful rows for 60 minutes and failed rows for 4,320 minutes (three days), so a working store always has recent rows.
2. Is the crontab entry there?
crontab -l
Look for a block between #~ MAGENTO START and #~ MAGENTO END with a line that calls bin/magento cron:run and appends to var/log/magento.cron.log. If it’s missing, bin/magento cron:install adds it. If an old block points to the wrong PHP binary or path, bin/magento cron:install --force replaces it. Adobe’s guide to configuring and running cron jobs covers the setup in full.
3. Does it run when you start it yourself?
bin/magento cron:run
Run it once and watch the output. “Ran jobs by schedule.” is what you want. “Cron is disabled. Jobs were not run.” means app/etc/env.php has 'cron' => ['enabled' => 0], often left over from a staging copy. A PHP fatal error or a permissions error here is the same error the system cron hits every minute. Also read the end of var/log/magento.cron.log and var/log/cron.log.
4. Are jobs stuck, missed or failing?
SELECT status, COUNT(*) FROM cron_schedule GROUP BY status;
| Status | What a high count means |
|---|---|
pending | Jobs are being scheduled but not picked up. A few dozen is normal. Hundreds with old scheduled_at dates is a backlog. |
running | A row that has said running for hours usually means the PHP process died, often from a memory limit or a server restart. |
missed | The job didn’t start within “Missed if Not Run Within”, 15 minutes by default for the default group. Seen in bulk after cron comes back from an outage. |
error | The job threw an exception. The messages column holds the error text. |
To list the stuck ones: SELECT job_code, executed_at FROM cron_schedule WHERE status = 'running' AND executed_at < UTC_TIMESTAMP() - INTERVAL 1 HOUR; The schedule lifetime and history settings are under Stores > Configuration > Advanced > System > Cron (Scheduled Tasks).
Common causes and fixes
- The crontab didn’t move with the site. A crontab belongs to a Linux user on one server. After a move to a new server or a new hosting account, the files and database arrive, and the crontab stays behind. Run
bin/magento cron:installon the new server as the file owner. - Cron runs as the wrong user. If someone installs the entry under
root, cron runs, but it writes files ingenerated/andvar/that the web server user can’t overwrite later. That can take the storefront down after the next deploy. Remove the entry from root’s crontab and install it under the file owner. - The PHP path changed. After a PHP upgrade, the binary in the crontab line may point to a version that’s been removed. Run
cron:install --forcewith the PHP version your store uses so the line is rewritten. - Cron disabled in env.php. Remove the
'cron' => ['enabled' => 0]entry or set it to 1, then runbin/magento cron:runagain. - One job keeps dying. If
MAX(executed_at)is recent but one job code is alwayserroror stuckrunning, the problem is that job, often from a third-party module. Themessagescolumn andvar/log/exception.logtell you which.
Cron trouble often shows up right after an upgrade. Our post on what breaks in a Magento 2.4.9 upgrade lists what else to check after one. Indexers that fall behind also slow category pages, which our Magento speed checklist covers.
Getting told when cron stops, with our free module
The checks above take ten minutes, once you know something is wrong. The hard part is knowing. A cron job can’t report that cron is dead, so the alert has to come from somewhere else. That’s why we wrote Magento 2 Cron Watchdog, a free module that checks cron_schedule from normal storefront and admin page requests, at most once every 15 minutes.
| Rule | Unhealthy when (default) |
|---|---|
| Last run | No job started or finished for more than 30 minutes, or no job has ever run |
| Stuck jobs | A job has had status running for more than 60 minutes |
| Backlog | 100 or more jobs still pending 30 minutes after their scheduled time |
| Errors | Off by default. When on, any error or missed job in the last 24 hours |
While cron is unhealthy, the admin shows a system message such as “Magento cron has not run since 2026-12-06 08:15:00 UTC”. You get one email when the problem starts and one when cron recovers, not one every 15 minutes. The module waits an hour after its first check before sending a problem email, so a dev copy with no cron doesn’t email you on day one.
It also adds bin/magento mconnect:cron:check. It prints the last run time, stuck jobs, pending backlog and errors, and exits with code 1 when cron is unhealthy. Call it from a separate system cron job or your monitoring tool and you get alerted even on a store with no traffic.
It’s free and MIT licensed. Get it from GitHub or from its page on our site. To install with Composer:
composer config repositories.magento2-cron-watchdog vcs https://github.com/mcsventures/magento2-cron-watchdogcomposer require mconnect/module-cron-watchdog:^1.0bin/magento module:enable Mconnect_CronWatchdogbin/magento setup:upgradebin/magento setup:di:compile(production mode only)bin/magento cache:flush
The settings are under Stores > Configuration > M-Connect Media > Cron Watchdog. Set any rule to 0 to turn it off. Leave the recipients empty and the email goes to your General Contact address.
It won’t restart cron for you
- It doesn’t restart cron or run jobs. It tells you cron stopped. You still fix the crontab or the server.
- The web check only runs when someone visits the store or the admin. If cron stops overnight with no visitors, the email goes out on the first visit after that. Use the CLI command for stores with little traffic.
- It reads
cron_scheduleonly. It doesn’t watch message queue consumers, the Adobe Commerce Cloud scheduler or jobs outside Magento. - All times are in UTC, the way Magento stores them.
- It sends no data to any outside server.
When cron keeps dying
A missing crontab line takes a minute to fix. Cron that dies every night, a job that runs out of memory, a cron_schedule table with millions of rows, or indexers that never catch up take longer. Those are jobs our team handles every week.
If one custom job keeps failing, a Magento code audit usually shows why, and our Magento module development team can rewrite the job.
Want us to find out why cron keeps stopping? Our Magento support plans start at $599 a month. If cron is fine but the store is slow, see our Magento speed optimization service. Starting prices in USD, final quote after a short call. Contact us.
The source code, issue tracker and full README are on the module’s GitHub page. The download and changelog are on the Magento 2 Cron Watchdog product page.
Sources
More free extensions from our team
- Magento 2 Payflow Guard (free, source on GitHub)
- Magento 2 Store Health Check (free, source on GitHub)
- Magento 2 Spam Registration Blocker (free, source on GitHub)
- Magento 2 Admin Login Alert (free, source on GitHub)
Every free module we have released so far is on our free Magento 2 extensions page, each with its setup guide and Composer package. Our paid modules are in the Magento 2 extensions store.



Comments
Leave a comment