function drupal_cron_cleanup

drupal_cron_cleanup()

DEPRECATED: Shutdown function: Performs cron cleanup.

This function is deprecated because the 'cron_semaphore' variable it references no longer exists. It is therefore no longer used as a shutdown function by Drupal core.

File

includes/common.inc, line 5448
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');
  }
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/includes!common.inc/function/drupal_cron_cleanup/7.x