<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial, helvetica, sans-serif;font-size:12pt"><DIV></DIV>
<DIV>Actually I do watchdog("my function', myfunction(10)) so the output goes to dblog when it works. I never use exit() in Drupal.<BR> </DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P> </P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: times new roman, new york, times, serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Ted <ted-drupalists@webfirst.com><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> development@drupal.org<BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wed, September 8, 2010 12:24:14 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] Cron run exceeded the time limit and was aborted.<BR></FONT><BR>Have you tried suppressing the output of your function? Also, make sure you're not calling drupal_goto--or anything else that calls exit().<BR><BR>Ted<BR><BR>On 9/8/2010 12:17 PM, nan wich wrote:
<BLOCKQUOTE type="cite">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>If I comment that line out, the problem goes away, so yes, I am reasonably convinced it is my function.</DIV>
<DIV> </DIV>
<DIV>I can clearly see it returning in far less than even 30 seconds, so there is no way it's taking 240.<BR> </DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><EM><STRONG>Nancy</STRONG></EM></FONT></P>
<P> </P>
<P><FONT face="arial, helvetica, sans-serif">Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.</FONT></P>
<DIV><BR></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif"><BR>
<DIV style="FONT-SIZE: 10pt; FONT-FAMILY: arial, helvetica, sans-serif"><FONT face=Tahoma size=2>
<HR SIZE=1>
<B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> Earnie Boyd <A class=moz-txt-link-rfc2396E href="mailto:earnie@users.sourceforge.net" target=_blank rel=nofollow ymailto="mailto:earnie@users.sourceforge.net"><earnie@users.sourceforge.net></A><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A class=moz-txt-link-abbreviated href="mailto:development@drupal.org" target=_blank rel=nofollow ymailto="mailto:development@drupal.org">development@drupal.org</A><BR><B><SPAN style="FONT-WEIGHT: bold">Sent:</SPAN></B> Wed, September 8, 2010 12:08:25 PM<BR><B><SPAN style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [development] Cron run exceeded the time limit and was aborted.<BR></FONT><BR>nan wich wrote:<BR>> I have a function that runs a few updates and displays a list of what it did. In <BR>> order to get caught up from a long period of neglect, I decided to add it into <BR>> the hook_cron. Every time I invoke cron, I get "Cron run exceeded
the time limit <BR>> and was aborted" yet it completes in far less than 30 seconds. Any ideas how my <BR>> code could be inadvertantly triggering this?<BR>> <BR>> Nancy<BR>> Injustice anywhere is a threat to justice everywhere. -- Dr. Martin L. King, Jr.<BR><BR>Are you sure it is your code? Try using Elysia Cron to schedule the<BR>hook_cron of different modules. The cron API gives 240 seconds for all<BR>hook_cron to execute, if all the modules exceed the 240 seconds then<BR>you'll see the exceeded time limit message.<BR><BR>-- <BR>Earnie<BR>-- http://progw.com<BR>-- http://www.for-my-kids.com<BR></DIV></DIV></DIV></BLOCKQUOTE><BR><BR></DIV></DIV></div></body></html>