joebd's picture

In D6 I came up with a way to get watchdog to log the time for each individual cron job per module.  Sometimes this info is really helpful if you're seeing issues with your cron.  I've lost access to that code.  As I recall this was a code addition to the main cron module which is the gatekeeper for all the modules cron tasks I think.

I'm getting numerous messages "Attempting to re-run cron while it is already running."  So it appears some cron task is taking too long.  Which one?  Output from the above should help.  

Seems like this might be a good option for cron: "More verbosity in the cron logs?"  Cron does lots of things.  Usually smoothly in the background.

Thanx All.  Backdrop on!

Comments

Hi,

D6 represent! I really have not tried this, but you could try the Rules module, which has some related stuff to that. The tool would appear in Configuration -> Workflow -> Rules

Create a new Rule and add to "Event" (see focused item):

 

 

Then add a new Action below, with:

 

And i assume you could set whatever value in these boxes:

Again, i have not tried this and don't know about working with Watchdog, but i hope it works!