<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>In this case, I can count to 5 and it's back, so it is clearly not taking long enough to time out.<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> Khalid Baheyeldin <kb@2bits.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 1:17:28 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>A better approach for timing cron stuff here http://drupal.org/node/131536#comment-1117255<BR><BR>There is a variable to turn this on or off on demand.<BR><BR>On Wed, Sep 8, 2010 at 12:55 PM, Jamie Holly <SPAN dir=ltr><<A href="mailto:hovercrafter@earthlink.net" target=_blank rel=nofollow ymailto="mailto:hovercrafter@earthlink.net">hovercrafter@earthlink.net</A>></SPAN> wrote:<BR>
<DIV class=gmail_quote>
<BLOCKQUOTE class=gmail_quote style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">
<DIV>The link in devel is just a link to the same URL as clicking it in the status report (/admin/reports/status/run-cron).<BR><BR>Here's a good hacky trick I have used before to diagnose cron problems. Go into module.inc and edit the module_invoke_all function so it looks like this:<BR><BR> foreach (module_implements($hook) as $module) {<BR> $function = $module .'_'. $hook;<BR> if ($hook=='cron'){<BR> echo "$module <br />";<BR> }<BR><BR>That will give you an idea of exactly which cron implementation it's hanging up at, then you can just revert the changes in module.inc when you are done troubleshooting. <BR><FONT color=#888888><PRE>Jamie Holly
http://www.intoxination.net
http://www.hollyit.net</PRE></FONT>
<DIV>
<DIV></DIV>
<DIV class=h5><BR>On 9/8/2010 12:46 PM, nan wich wrote:
<BLOCKQUOTE type="cite">
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: arial, helvetica, sans-serif">
<DIV>No I am not using drush.</DIV>
<DIV> </DIV>
<DIV>I have discovered that this only happens when I invoke cron from the Devel menu in the admin_menu bar. If I go to admin/reports/status and click the link there, it runs fine, as it also does when the normal cron run happens. So I opened an issue with Devel.<BR> </DIV>
<P><FONT face="bookman old style, new york, times, serif" color=#ff007f size=4><I><B>Nancy</B></I></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> António P. P. Almeida <A href="mailto:appa@perusio.net" target=_blank rel=nofollow ymailto="mailto:appa@perusio.net"><appa@perusio.net></A><BR><B><SPAN style="FONT-WEIGHT: bold">To:</SPAN></B> <A 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:38:40 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>On 8 Set 2010 17h26 WEST, <A href="mailto:nan_wich@bellsouth.net" target=_blank rel=nofollow ymailto="mailto:nan_wich@bellsouth.net">nan_wich@bellsouth.net</A> wrote:<BR><BR>> [1 <text/plain; iso-8859-1 (quoted-printable)>] Nope, it's not<BR>> Update. I can run cron every minute and this happens. And I don't<BR>> think I even have
Update enabled on that site. Nancy Injustice<BR>> anywhere is a threat to justice everywhere. -- Dr. Martin L. King,<BR>> Jr.<BR><BR>I'll second Earnie's suggestion for trying Elysia Cron, you can set<BR>the cron running time for each implementation of hook_cron().<BR><BR>As a more hands on approach: grep the hook_cron() implementations of the<BR>installed modules and try disabling one by one until the problem disappears.<BR><BR>Are you using drush? If so you can trace the root of the problem with<BR>relative ease.<BR><BR>find sites/all/modules/ -type f -regex ".*\.\(module\|inc\)" -print | xargs grep "function.*_cron"<BR><BR>Then just try<BR><BR>drush dis -y <module><BR><BR>and <BR><BR>drush cron <BR><BR>Repeat as necessary.<BR><BR>--- appa<BR><BR></DIV></DIV></DIV></BLOCKQUOTE></DIV></DIV></DIV></BLOCKQUOTE></DIV><BR><BR clear=all><BR>-- <BR>Khalid M. Baheyeldin<BR><A href="http://2bits.com/" target=_blank
rel=nofollow>2bits.com</A>, Inc.<BR>http://2bits.com<BR>Drupal optimization, development, customization and consulting.<BR>Simplicity is prerequisite for reliability. -- Edsger W.Dijkstra<BR>Simplicity is the ultimate sophistication. -- Leonardo da Vinci<BR></DIV></DIV></div></body></html>