[development] hook_cron timeout
Neil Hastings
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.
Cheers,
Neil
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.
> http://www.blackstormsstudios.com
>
>
> 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
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.drupal.org/pipermail/development/attachments/20091009/2efed8a2/attachment.html
More information about the development
mailing list