Jump to content
  • 0

Fix for: There are one or more cron tasks that have been executing for more than 60 minutes.


sunrisepro

Question

6 answers to this question

Recommended Posts

  • 0
On 9/15/2016 at 9:05 AM, sunrisepro said:

Instead of running cron jobs through Blesta can I setup the cronjobs manually instead?

You can setup a cron job to run all cron tasks or only a specific cron task. You can run a specific cron task by updating the cron task URL to append the name (method) of cron task you want it to run, e.g. Setting a cron task path to "/path/to/cron/createinvoices" would run the "createinvoices" cron task only.

Link to comment
Share on other sites

  • 0

I assume you have setup a cron job already, correct? It is very likely that 1 cron job is already setup which runs all tasks. This is the behavior we recommend when setting up a cron job, and what is described in the documentation.

The alternative I mentioned is to run each task individually, where each task is started from a separate cron job.

If you continue to receive this message on the System Status plugin:

Quote

There are one or more cron tasks that have been executing for more than 60 minutes.

..then I would suggest:

Quote

If a task stalled, it will attempt again in 6 hours. If the issue is caused by an error (e.g. some run-time error), you could remove the log for the offending task and run the cron again manually with error reporting on so you can determine the error and resolve it before the task runs next time.

 

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