You are here

function drupal_cron_cleanup in Drupal 6

Same name and namespace in other branches
  1. 5 includes/common.inc \drupal_cron_cleanup()
  2. 7 includes/common.inc \drupal_cron_cleanup()

Shutdown function for cron cleanup.

1 string reference to 'drupal_cron_cleanup'
drupal_cron_run in includes/common.inc
Executes a cron run when called

File

includes/common.inc, line 2845
Common functions that many Drupal modules will need to reference.

Code

function drupal_cron_cleanup() {

  // See if the semaphore is still locked.
  if (variable_get('cron_semaphore', FALSE)) {
    watchdog('cron', 'Cron run exceeded the time limit and was aborted.', array(), WATCHDOG_WARNING);

    // Release cron semaphore
    variable_del('cron_semaphore');
  }
}