<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
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 cite="mid:950914.24326.qm@web180311.mail.gq1.yahoo.com"
type="cite">
<style type="text/css"><!-- DIV {margin:0px;} --></style>
<div style="font-family: arial,helvetica,sans-serif; font-size:
12pt;">
<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 size="4" color="#ff007f" face="bookman old style, new
york, times, serif"><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 size="2" face="Tahoma">
<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"><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">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>
-- <a class="moz-txt-link-freetext" href="http://progw.com">http://progw.com</a><br>
-- <a class="moz-txt-link-freetext" href="http://www.for-my-kids.com">http://www.for-my-kids.com</a><br>
</div>
</div>
</div>
</blockquote>
<br>
<br>
</body>
</html>