Jump to content

Question

Posted

Hi,

 

Running cron every 5 mins is a very big problem. It keeps on sending email even if no action has been taken etc. It should only send email if there is something generated or some error or something.

 

Thanks.

10 answers to this question

Recommended Posts

  • 0
Posted

My setup is a standard setup. I don't know what to tell you, simple blesta running cron every 5 mins. which keeps on sending an email with details. Also cron is some how generating duplicate invoices. For eg. I added a service and also invoiced it while adding. Then added 2 more services and merged their details in the already existing invoice. All fine but cron ran and generated another invoice for the 2 more services i had added and got added into the invoice that got created earlier. Dunno what is happening.

  • 0
Posted

We really need more information to help determine what's going on with your system. How many cron jobs do you have setup for Blesta?

 

Have you checked your cron logs to see what tasks have been run and what they've done? What emails have been sent that you think should not have been? The client mail log shows emails the client has received. You can check the company email templates for a list of templates, and determine which templates were used to send those emails.

  • 0
Posted

Could be way off the mark here but is your cron set up in cPanel? you're probably receiving the cron email notification from that? it's at the very top of the cron jobs screen.

 

http://docs.cpanel.net/twiki/bin/view/AllDocumentation/CpanelDocs/CronJobs#Adding a cron email

 

This sends you an email every time a cron job is executed and includes its output if any, just get rid of it (leave blank and select update) to set it as blank.

  • 0
Posted

I think Greg-Mega is on target. You can add the following to the end of your cron to stop the emails
 
>/dev/null 2>&1

Make sure there's a space at the end of your cron before you add this.

  • 0
Posted

Hi,

 

But then I won't see get the info on what blesta is doing. I need to know what blesta has done. As there is no other way to find out.

 

Thanks.

 

As paul stated the logs are there for you, and also you can see if a cron job ran as on the automation page you can see the last run date and time :)

Join the conversation

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

Guest
Answer this question...

×   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.

Loading...
×
×
  • Create New...