You are here

function ultimate_cron_run_scheduled in Ultimate Cron 7.2

Run scheduled jobs.

Parameters

bool $set_message: Set Drupal system message instead of watchdog logging.

3 calls to ultimate_cron_run_scheduled()
drush_ultimate_cron_cron_run in ./ultimate_cron.drush.inc
Run cron job(s).
ultimate_cron_cron_run in ./ultimate_cron.module
Run cron.
ultimate_cron_run_scheduled_page in ./ultimate_cron.module
Page callback for running scheduled jobs.

File

./ultimate_cron.module, line 1613

Code

function ultimate_cron_run_scheduled($set_message = TRUE) {
  if (variable_get('ultimate_cron_disable_scheduled', 0)) {
    ultimate_cron_watchdog_message('ultimate_cron', 'Cannot launch scheduled jobs while ultimate_cron_disable_scheduled variable is set!', array(), WATCHDOG_NOTICE, 'error', $set_message);
    return;
  }
  if (variable_get('maintenance_mode', 0)) {
    ultimate_cron_watchdog_message('ultimate_cron', 'Cannot launch scheduled jobs while in maintenance mode!', array(), WATCHDOG_NOTICE, 'error', $set_message);
    return;
  }
  ultimate_cron_run_launchers();
}