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

Shutdown function for cron cleanup.

Related topics

File

includes/common.inc, line 2194
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', t('Cron run exceeded the time limit and was aborted.'), WATCHDOG_WARNING);

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