Magento – Cron job always “missed”

cronmagento-1.9

My website has this cron job set to run every 30 mins and the cron.php/sh is set to run every 15 mins on the server. But I always get "missed" for this cron job. My cron configuration time setting is:

15
45
60
60
3000
3000

Also, I have noticed that every now and again we got the message (from aoe scheduler) saying "last heartbeat is older than *** (more than 15) mins" even more than an hour sometimes. Does this mean the cron.php/sh is not running properly? Hence the cron job is "missed"?

Please kindly advise!! Many Thanks!

Best Answer

Please Try This

It looks like you're using the default Magento cron.

If you want the AOE Scheduler to work you need to use the scheduler's cron instead - e.g.:

*/5 * * * * /bin/sh -f /home/cpanel_user/public_html/scheduler_cron.sh

FYI - the "heartbeat" task is a very lightweight cron job that runs every time, simply reporting that the scheduler is running. If your message is showing you that the heartbeat couldn't be found it likely means either that your cron isn't configured correctly, or there's a lock in place. You can try removing var/locks and the scheduler's lock which normally lives in /tmp if this is the case.

Hope It's helpful for any one.

Related Topic