I'm not sure if the batch process that is built into core can be used with cron but you can try that http://api.drupal.org/api/group/batch/6.
Cheers,
Neil
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)
Hope that helps!
---
Cameron Eagans
Owner, Black Storms Studios, LLC.
http://www.blackstormsstudios.com
On Oct 9, 2009, at 8:41 AM, luca capra <luca.capra@gmail.com> wrote:
Hi,
in a custom module I'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 ?
Thank you.
Regards,
Luca