I can get the feeds update using the standard drupal cron.php, but somehow, feeds do not update using either Elysia Cron or SuperCron (maximum time of 240 seconds exceeded).

I have made the changes in feedapi.module, common.inc etc., changing the hard-coded 240 second time to something higher, however, both Elysia and Super Cron systems fail on FeedAPI without any informative messages.

Is it possible to use feedapi in conjunction with either? If anybody has done so, is there something one needs to do specially?

Comments

aron novak’s picture

Status: Active » Postponed (maintainer needs more info)

First, if you have shell access to the box that runs feedapi, you're maybe interested in a drush-powered solution:
http://developmentseed.org/blog/2009/jun/24/feedapi-and-drush-refresh-yo...

Second, for feedapi cron, the most problematic thing is often the cron semaphore. Can you make sure that these modules handle cron semaphore variable as drupal core does?

gotheric’s picture

Hi, i'm the maintainer of Elysia Cron.

An old version of Elysia Cron (feb.2009) was handling cron_semaphore in a way that conflicted with FeedAPI (http://drupal.org/node/382796)
Now that issue is solved, and there should be no more problems using the modules togoether.

However if some other conflicts occour i can investigate further.

Are you using Elysia Cron by calling standard drupal cron or by calling elysia_cron/cron.php (advanced install)?

deltab’s picture

@gotheric, I am using standard drupal cron.
for now, i found a workaround by increasing safe mode limit at 240 seconds in elysia_cron module.

gotheric’s picture

I've checked the set_time_limit issue... it's strange, elysia_cron uses it exactly the same way drupal cron does (it just sets it before a cron execution), so it should do the same.
Do you use channels for parallel execution of jobs? Maybe concurrent execution slows down the process a little and it breaks the 240sec limit (or the time limit * 'feedapi_cron_percentage' variable).

However i've just committed some changes for a new release of elysia_cron ( http://drupal.org/project/elysia_cron ): there are several new features and fixes, and a new setting to set the time limit to the value you want, so you can put your setting without changing the code.
(Now i'm testing it, i'll release the new version in some days, or you can download the nightly build).

gotheric’s picture

I've just released a new version of Elysia Cron with the new settings (to change the time limit) and other improvements.