Perhaps your hook has an exit() in it (or aborts for some other reason?) and therefore cron does not have a chance to clear the semaphore?
Elysia cron will probably make the problem go away, by working around it. On Wed, Sep 8, 2010 at 12:26 PM, nan wich <nan_w...@bellsouth.net> wrote: > Nope, it's not Update. I can run cron every minute and this happens. And I > don't think I even have Update enabled on that site. > > > *Nancy* > > > > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. > King, Jr. > > > ------------------------------ > *From:* Dhananjay Gandhi <dhananjay.gan...@gmail.com> > *To:* development@drupal.org > *Sent:* Wed, September 8, 2010 12:21:34 PM > *Subject:* Re: [development] Cron run exceeded the time limit and was > aborted. > > hey > > cron takes time in cheching updates of ur drupal version and its modules. > If u deactivate the update module then it will not take time. > > On Wed, Sep 8, 2010 at 9:38 PM, Earnie Boyd > <ear...@users.sourceforge.net>wrote: > >> nan wich wrote: >> > I have a function that runs a few updates and displays a list of what it >> did. In >> > order to get caught up from a long period of neglect, I decided to add >> it into >> > the hook_cron. Every time I invoke cron, I get "Cron run exceeded the >> time limit >> > and was aborted" yet it completes in far less than 30 seconds. Any ideas >> how my >> > code could be inadvertantly triggering this? >> > >> > Nancy >> > Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. >> King, Jr. >> >> Are you sure it is your code? Try using Elysia Cron to schedule the >> hook_cron of different modules. The cron API gives 240 seconds for all >> hook_cron to execute, if all the modules exceed the 240 seconds then >> you'll see the exceeded time limit message. >> >> -- >> Earnie >> -- http://progw.com >> -- http://www.for-my-kids.com >> > > > > -- > Thanks & Regards, > Dhananjay Gandhi > -- Khalid M. Baheyeldin 2bits.com, Inc. http://2bits.com Drupal optimization, development, customization and consulting. Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra Simplicity is the ultimate sophistication. -- Leonardo da Vinci