I&#39;m not sure if the batch process that is built into core can be used with cron but you can try that  <a href="http://api.drupal.org/api/group/batch/6">http://api.drupal.org/api/group/batch/6</a>.<br><br>Cheers,<br>Neil<br>

<br><div class="gmail_quote">On Fri, Oct 9, 2009 at 10:34 AM, Cameron Eagans <span dir="ltr">&lt;<a href="mailto:cweagans@gmail.com">cweagans@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

No. If the amount of work being done in hook_cron is enough to cause PHP to time out, you should probably break it up into smaller chunks and look at the Job Queue module (essentially create a list of things to do and have cron run a few items from that list on each cron run)<br>


<br>
Hope that helps!<br>
 ---<br><font color="#888888">
Cameron Eagans<br>
Owner, Black Storms Studios, LLC.<br>
<a href="http://www.blackstormsstudios.com" target="_blank">http://www.blackstormsstudios.com</a></font><div><div></div><div class="h5"><br>
<br>
On Oct 9, 2009, at 8:41 AM, luca capra &lt;<a href="mailto:luca.capra@gmail.com" target="_blank">luca.capra@gmail.com</a>&gt; wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
in a custom module I&#39;ve implemented hook_cron, but after a call to cron.php I get in watchdog a message about cron timeout. Need I to use register_shutdown_function ?<br>
Thank you.<br>
<br>
Regards,<br>
Luca<br>
</blockquote>
</div></div></blockquote></div><br>