[development] hook_cron timeout

Cameron Eagans cweagans at gmail.com
Fri Oct 9 14:34:52 UTC 2009

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.

On Oct 9, 2009, at 8:41 AM, luca capra <luca.capra at 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

More information about the development mailing list