You are here

function drush_recommender_cron in Recommender API 7.6

File

./recommender.drush.inc, line 47

Code

function drush_recommender_cron() {
  if (variable_get('recommender_cron_strategy', 'drupal') == 'drush' || drush_get_option('force', FALSE)) {
    drush_log("Processing recommender cron callbacks ...", 'status');
    recommender_cron_process(time());
    drush_log("Recommender cron callbacks run complete.", 'ok');
  }
  else {
    drush_log("Recommender cron is setup to run with Drupal. Please set it to run with drush or use the '--force' option.", 'warning');
  }
}