cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Email Always "Missed"

Cron Email Always "Missed"

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.

2 REPLIES

Re: Cron Email Always "Missed"

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. I hope this helps.

 

Best of Luck!

Re: Cron Email Always "Missed"

Hi,

 

Would there be a way to separate the Cron into 4 different sections, as you've outline? Because this is just a single Cron, with a single expression.

 

Thanks.