drupal_cron_cleanup
Definition
drupal_cron_cleanup()
includes/common.inc, line 2052
Description
Shutdown function for cron cleanup.
Related topics
| Name | Description |
|---|---|
| Input validation | Functions to validate user input. |
Code
<?php
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');
}
}
?> 