Jump to content

Force Any Cron Task To Run Manually


Blesta Addons

Recommended Posts

we can run cron manually , but the action will just run the cron that should be run in the time set to it .

 

it would be a good option to allow admin to force run a cron manually . like the suspend services, this very usefull for a cron that run 1 per day .

 

today , we have found the suspend cron task stacked and has not ended . and no services was suspended . we can't run the cron again until the next day !!! 

 

so a option that allow admin force cron to run manually even if is not it time .

 

 

 

 

Link to comment
Share on other sites

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.

 

Adding the ability to run cron tasks outside of their scheduled time/interval to run can be dangerous, though, if it was already run today or is still running. You could end up with the same task being performed twice (or more) on identical data.

 

It may be better, especially for your case, to make it easier to restart a stalled task. There have been some suggestions before, including adding a page that lists failed tasks, why they've failed (if available), and an option to restart them.

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.

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