Welcome to Discussion Forum, where you can ask questions and receive answers from other members of the community.

Cron Emails are "Missed" always

0 like 0 dislike
Hi, 
 
When viewing the Cron scheduled tasks, I always notice that the cron for the emails are always "Missed". There are 4 of the same tasks being displayed, all starting out as "Pending" and ending with "Missed". The problem may well be that these email tasks happen 1 minute after each other, and as a result are piling up. Currently this is the Cron Expression I'm using for the emails: */1 * * * * Rather than having it be performed every 1 minute, what would be the most appropriate time to have them scheduled?
 
Thanks.
asked May 29, 2017 in Magento by harsh (8,710 points)

1 Answer

1 like 0 dislike

Hi There,

It may be possible that your crons are being piled up. If you have to run these crons at every one minute then you should better use sleep. What you can do is that just break your crons into 4 different crons and schedule then in following way

*/1 * * * *  sleep 1; /cron/first

*/1 * * * *  sleep 2; /cron/second

*/1 * * * *  sleep 3; /cron/third

*/1 * * * *  sleep 4; /cron/fourth

In this way your cron will not pile up and should run smoothly.

Best of Luck!

 

 

answered May 30, 2017 by Prashant (1,160 points)

Related questions

0 like 0 dislike
3 answers 4,142 views
1 like 0 dislike
0 answers 242 views
242 views asked Feb 15, 2017 in Magento by harsh (8,710 points)
0 like 0 dislike
0 answers 76 views
0 like 0 dislike
0 answers 28 views
28 views asked Mar 7, 2017 in Magento by harsh (8,710 points)
0 like 0 dislike
2 answers 55 views
55 views asked Feb 22, 2017 in General by teo.arjun (2,610 points)
...