If use drush from shell or crontab, now call ALL module with "call_user_func($module ."_run_recommender");"
I recommend that a separate module caller for drush, referer with simple module index (or module name?)
Example:
drush recommender #1 // call first module,
drush recommender #2 // call second module,
...
drush recommender all // call all module

This way solve better scheduling, and fewer resources

Comments

danithaca’s picture

Assigned: Unassigned » danithaca

thanks for the suggestion. i'll consider this feature request during the next phase of development, perhaps in the summer of this year. (currently occupied by other school work)

danithaca’s picture

Status: Active » Fixed

Actually, the module currently support this feature. Note that you can provide a list of module names as arguments (eg, drush recommender fivestar_rec voting_rec, etc), and then the recommender only runs for those modules.

  $items['recommender'] = array(
    'callback' => 'recommender_drush_run',
    'description' => "Run RecommenderAPI based modules, compute similarity and/or prediction.",
    'arguments' => array(
      'modules' => 'Optional. A space delimited list of modules.',
    ),
  );

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.