Jump to content

How to stop the Cron Job email ? Getting a email ever minute !


MeHost

Recommended Posts

Hey,

 

So i run a Cron Job every minute, so account activation's are more or less instant. The problem is i get a email every minute with the text :

 

Cron Job Report for 14-05-2012 10:52:01

 

Updated Currency Exchange Rates

 

X Invoices Created

 

X Overdue Invoice Reminders Sent

 

X Invoice Payment Reminders Sent

 

X Upcoming Domain Renewal Notices Sent

 

X Cancellation Requests Automatically Processed

 

X Services Suspended

 

X Fixed Term Services Terminated

 

Email Marketer Processing

 

Disk & Bandwidth Usage Statistics Updated

 

I would like the Cron job to run every minute, But not get a email every minute ?

 

help please ! Thanks !

Link to comment
Share on other sites

So i run a Cron Job every minute, so account activation's are more or less instant.

Equally account activiation is automated within WHMCS scripts, you can test this by placing a maual order on a test account

Once you have tested this, delete the test accounts

 

Instant activation should take no more than 3 minutes, from gateway confirmation to the final email sent from WHMCS (and your server control panel)

Link to comment
Share on other sites

as stated this is a daily run cron job

 

If my memory serves correctly this cron job running more than once a day will totally mess with your billing because it will be creating invoice after invoice on the days they are due for creation.

 

Once a minute if this is the case would result in 1440 invoices for just one client. now if you have that every day and have multiple clients each and every day you can imagine what sort of mess you are going to get yourself into with your billing system, and that would also mean on this day, the client will get 1440 emails from you telling they have an invoice created. and then the same for reminders, late notices suspensions termination..

 

Talk about a way to kill your server lol. Although i may be incorrect here and it may not work this way, but it still is only a once a day task, doesnt need to run more than that. (also on a very large database the 1minute cron jobs will not have time to complete before the next is due to go off. you could essentially have hundreds of processes running the exact same task. this alone will bring a system down if its not kept in check

Link to comment
Share on other sites

If my memory serves correctly this cron job running more than once a day will totally mess with your billing because it will be creating invoice after invoice on the days they are due for creation.

No, it's doesn't do anything like that, although it will annoy-the-cr@p out of clients (and admins)
Link to comment
Share on other sites

Agreed, once an invoice has been created on a specific date, the cron simply resends it, it does not create a new one

 

I attempted to use the cron to update the stats available to clients (disk space and bandwidth) and had it running once every hour

I too decided this was useless

I did look at a simplified cron for this purpose, but without access to the original code this has not been possible

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated