Hi there,

This is what I am looking for with multi threading capability but when I tried to run supercron.php or invoke feedapi in supercron admin, the feeds are not refreshed. However, if i click on 'Invoke All', the feeds starts to run. Thanks!

Comments

MisterSpeed’s picture

This may just be an impression left by the multithreading. When you click on Invoke on a particular module and it is marked for separate execution Invoke will return right away and not update its stats (the process doesn't wait for the last "thread" to be completed). If you wait for a certain amount of time for the hook to execute and refresh your page, the stats will be updated (including the last call time). That's why clicking Invoke doesn't give the impression of something happening but Invoke All did: there was a time gap between both. If you try it again but wait for the hook to complete (add a few seconds to teh average execution time), then refresh the page, do you get updated results ?

dropchew’s picture

I tried disabling the multithread function and invoke feedapi and it returns to the page instantly, waited a few minutes and refresh the supercron admin page but the feeds are still not refreshed... I can see that it is being called by looking at 'Last called' but the 'execution time' and 'average exec time' are 0.00 and 0.08 sec. I have a few hundred feeds and it shouldn't take that fast. This time I tried using drupal's cron and the feeds starts to work...hope I didnt miss out anything. thanks

MisterSpeed’s picture

The problem appears to be with this line in feedapi.module, which queries a cron-specific variable:

$time_limit = min($time_limit, variable_get('cron_semaphore', 0) + ini_get('max_execution_time'));

So we'll just create that variable as well. It will be fixed in 1.3.

MisterSpeed’s picture

Status: Active » Fixed
dropchew’s picture

Hi,

I upgraded to 1.3 but its seems that manual invoking or supercron.php feedapi is still not working...

MisterSpeed’s picture

Status: Fixed » Active
thehong’s picture

Hi, I set up site with:
* feedapi-6.x-1.x-dev (today head). Enabled: FeedAPI, FeedAPI Node, Common syndication parser, FeedAPI Inherit.
* supercron-6.x-1.3

Then, I created 2 feed-nodes:
* http://drupal.org/rss.xml and
* http://www.bbc.co.uk/vietnamese/index.xml

Enable Multithread for all modules listed on /admin/settings/supercron. Then, I tried to invoke feedapi module, as you reported, my feeds refresh as expected (many node displayed on homepage). I cleared feeds some times, do not face any problem.

Andy

qds013’s picture

Title: Not compatible with feedapi? » Seems to have incompatibility issue with PostgreSQL
Version: 6.x-1.2 » 6.x-1.3

Apologize for posting this request to the wrong place.

MisterSpeed’s picture

Status: Active » Closed (duplicate)
MisterSpeed’s picture

(double post)