mrsha Posted February 24, 2019 Share Posted February 24, 2019 Hi, In the docs its recommended that the cron job runs every 5 minutes, or as often as the hosting provider allows but they don't specify if 5 minutes is the limit, I'm running WHMCS on a dedicated server so I can run them as frequently as I want. Currently, I'm running them every minute, has anybody experienced any problems running them every minute? Thanks. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 24, 2019 Share Posted February 24, 2019 While you can, you may find you run into issues with it not completing within that minute and a new instance being started. Don't know if they have a check in place for that. Any reason you need it to run that often? 0 Quote Link to comment Share on other sites More sharing options...
mrsha Posted February 25, 2019 Author Share Posted February 25, 2019 Hey, thanks for your answer, the reasoning behind this is the time it takes for emails to be sent, I believe that if crons are executed every minute the emails would be sent faster, is that correct? I am not sure if the emails are sent upon generation or if they are added to a queue and processed by crons. 0 Quote Link to comment Share on other sites More sharing options...
bear Posted February 26, 2019 Share Posted February 26, 2019 I don't know how the mail is queued via cron (assuming you're referring to marketing emails?). It may be all at once or spread out, but every minute is a bit more likely to cause issues, I'd guess. You'd need to ask WHMCS folks about that mail scheduling; I'd imagine they'd have a better idea if your idea would help. 0 Quote Link to comment Share on other sites More sharing options...
mrsha Posted February 26, 2019 Author Share Posted February 26, 2019 Ok, thanks for your comments, I will ask WHMCS and for the meantime change the crons to every 5 minutes to avoid any problems. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.