function drupal_cron_cleanup
Same name and namespace in other branches
- 6.x drupal-6.x/includes/common.inc \drupal_cron_cleanup()
Shutdown function: Performs cron cleanup.
See also
drupal_register_shutdown_function()
1 string reference to 'drupal_cron_cleanup'
- drupal_cron_run in drupal-7.x/
includes/ common.inc - Executes a cron run when called.
Archivo
- drupal-7.x/
includes/ common.inc, line 5286 - Common functions that many Drupal modules will need to reference.
Código
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');
}
}