[UPDATE] Check for upgrade later
This commit is contained in:
parent
2568ced4d4
commit
9006bf1350
@ -64,13 +64,14 @@ if ($monitoring->isDisabled($cron_name)) {
|
|||||||
$monitoring->endCronjob($cron_name, 'E0018', 1, true, false);
|
$monitoring->endCronjob($cron_name, 'E0018', 1, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Mark cron as running for monitoring
|
||||||
|
$log->logDebug('Marking cronjob as running for monitoring');
|
||||||
|
$monitoring->setStatus($cron_name . '_starttime', 'date', time());
|
||||||
|
|
||||||
// Check if we need to halt our crons due to an outstanding upgrade
|
// Check if we need to halt our crons due to an outstanding upgrade
|
||||||
if ($setting->getValue('db_upgrade_required') == 1 || $setting->getValue('config_upgrade_required')) {
|
if ($setting->getValue('db_upgrade_required') == 1 || $setting->getValue('config_upgrade_required') == 1) {
|
||||||
$log->logFatal('Cronjob is currently disabled due to required upgrades. Import any outstanding SQL files and check your configuration file.');
|
$log->logFatal('Cronjob is currently disabled due to required upgrades. Import any outstanding SQL files and check your configuration file.');
|
||||||
$monitoring->endCronjob($cron_name, 'E0075', 0, true, false);
|
$monitoring->endCronjob($cron_name, 'E0075', 0, true, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Mark cron as running for monitoring
|
|
||||||
$log->logDebug('Marking cronjob as running for monitoring');
|
|
||||||
$monitoring->setStatus($cron_name . '_starttime', 'date', time());
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user