Hi,
I have installed organic groups and og similar groups6.x.1.1, in order the last one works I have to install recomender api 6.2.0 beta4, however the problem is that when I have enable recommender api, cron doesn´t work.

What can i do?

thank you!!

Comments

rma4ok’s picture

Priority: Normal » Critical

recommender.module
I v tried to fix it with this.

function recommender_run($selected = NULL) {
  watchdog('recommender', "Invoking run_recommender. Might start a time-consuming process.");
  
  // hook_run_recommender() doesn't take any args. args setting is the responsibility of caller modules.
  //module_invoke_all('run_recommender');
  $operations = array();
  foreach (module_implements('run_recommender') as $module) {
    eval($module . '_run_recommender();');
  }
}
skat’s picture

thank you for the answer!

Regards!

gateone’s picture

Sadly this last fix did not cure it. Changing the code in recommender.module breaks the site:

Parse error: syntax error, unexpected '}' in /var/www/vhosts/win-verlag.net/subdomains/netkatalog/httpdocs/sites/all/modules/recommender/recommender.module on line 355

Disabled all recommender modules (browing history, fivestar voting) does not cure it so it is Recommender API itself...

realOFF’s picture

Same problem here. Cron is timing out when Recommended is scheduled.

Problem seems to be that when cron runs, instead of processing in the background, Recommended opens it's administration page (weird, isn't it?). Waiting for human input, cron times out.

You can verify this by manually running cron.

That's my scenario anyway. Anyone experiencing the very same?

Edit: The above fix worked for me.

danithaca’s picture

I plan to do a next batch of improvement during the summer: http://groups.drupal.org/node/137054. After outsourcing the matrix computation to Apache Mahout, there should not be a messed up cron problem, because cron won't be responsible for the complex computation anymore.

danithaca’s picture

#1180000: GSoC2011: Apache Mahout Integration should fix the issue related to performance problems. Will mark this issue as "won't fix" when the GSoC project gets finished before the summer.

danithaca’s picture

Status: Active » Closed (won't fix)

Performance issue is solved by using Mahout integration. See #1180000: GSoC2011: Apache Mahout Integration for D7 and #1198954: D6 back port: Mahout support for D6.

Cron is not a problem in the RecAPI 3.x releases. I don't plan to fix this issue for the 6.x-2.x release.