Commit c3737f51 authored by Steven Wittens's avatar Steven Wittens

Cron.php

- #1322: Adding a warning if the cron fails to complete.
- Simplifying odd commenting syntax
parent ddb31aaf
<?php <?php
// $Id$
include_once "includes/bootstrap.inc"; include_once "includes/bootstrap.inc";
include_once "includes/common.inc"; include_once "includes/common.inc";
/* // If not in 'safe mode', increase the maximum execution time:
** If not in 'safe mode', increase the maximum execution time:
*/
if (!ini_get("safe_mode")) { if (!ini_get("safe_mode")) {
set_time_limit(240); set_time_limit(240);
} }
/* // Check if the last cron run completed
** Iterate through the modules calling their cron handlers (if any): if (variable_get('cron_busy', false)) {
*/ watchdog('warning', t('Last cron run did not complete.'));
}
else {
variable_set('cron_busy', true);
}
// Iterate through the modules calling their cron handlers (if any):
module_invoke_all('cron');
module_invoke_all("cron"); // Clean up
variable_set('cron_busy', false);
watchdog('regular', t('Cron run completed'));
watchdog('regular', t('cron run completed'));
?> ?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment