Active
Project:
FeedAPI
Version:
6.x-1.7-beta3
Component:
Code feedapi (core module)
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
31 Jul 2009 at 03:00 UTC
Updated:
4 Aug 2009 at 13:04 UTC
Some times cron sticks on gathering of feed items.
For example when a feed owner site has dns problems and doesn't reply for requests.
In this cases, cron not works on the next scheduled time and for some hours hammers the server.
How can i prevent this?
Is it possible to write a hook for thresholding?
Comments
Comment #1
alex_b commentedDo you get similar problems when refreshing manually?
You may want to fire cron with drush:
[edit] - using cron with drush decreases the overall memory size Drupal requires + you are able to specifically tune your settings for PHP CLI apart from PHP's webserver configuration.
Comment #2
aron novakIt is possible to add timeout thresolds when downloading the feed. Which parser do you use?
http://us2.php.net/manual/en/function.curl-setopt.php - CURLOPT_TIMEOUT
However this should not happen. If there is something wrong with the internet connection, you can test it before firing cron.