[development] hook_cron timeout
neil.hastings at gmail.com
Fri Oct 9 14:39:01 UTC 2009
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.
On Fri, Oct 9, 2009 at 10:34 AM, Cameron Eagans <cweagans at gmail.com> wrote:
> 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:
>> 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the development