Skip to content
Snippets Groups Projects
Commit f00a7bb6 authored by catch's avatar catch
Browse files

Issue #1775488 by amateescu, vijaycs85: Fixed drupal_cron_cleanup() is not converted to lock.

parent 557351e2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
...@@ -4927,8 +4927,6 @@ function drupal_cron_run() { ...@@ -4927,8 +4927,6 @@ function drupal_cron_run() {
queue($queue_name)->createQueue(); queue($queue_name)->createQueue();
} }
} }
// Register shutdown callback.
drupal_register_shutdown_function('drupal_cron_cleanup');
// Iterate through the modules calling their cron handlers (if any): // Iterate through the modules calling their cron handlers (if any):
foreach (module_implements('cron') as $module) { foreach (module_implements('cron') as $module) {
...@@ -4970,22 +4968,6 @@ function drupal_cron_run() { ...@@ -4970,22 +4968,6 @@ function drupal_cron_run() {
return $return; return $return;
} }
/**
* Shutdown function: Performs cron cleanup.
*
* @see drupal_cron_run()
* @see drupal_register_shutdown_function()
*/
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');
}
}
/** /**
* This function is kept only for backward compatibility. * This function is kept only for backward compatibility.
* *
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment