You are here

function drush_recommender_run in Recommender API 7.6

File

./recommender.drush.inc, line 35

Code

function drush_recommender_run() {
  $count = 0;
  while ($record = computing_claim('recommender')) {
    drush_log("Processing recommender computation: {$record->id}", 'status');
    recommender_process_record($record);
    computing_update($record);
    $count++;
  }
  drush_log("Processed {$count} recommender tasks.", 'ok');
}