[FIX] Do not mark cron disabled, just notify
This commit is contained in:
parent
4e4ebb3d90
commit
bf86cc6c25
@ -29,7 +29,7 @@ require_once('shared.inc.php');
|
|||||||
$affected_rows = $share->purgeArchive();
|
$affected_rows = $share->purgeArchive();
|
||||||
if ($affected_rows === false) {
|
if ($affected_rows === false) {
|
||||||
$log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError());
|
$log->logError("Failed to delete archived shares, not critical but should be checked: " . $share->getCronError());
|
||||||
$monitoring->endCronjob($cron_name, 'E0008', 1, true);
|
$monitoring->endCronjob($cron_name, 'E0008', 0, false, false);
|
||||||
} else {
|
} else {
|
||||||
$log->logDebug("Deleted $affected_rows archived shares this run");
|
$log->logDebug("Deleted $affected_rows archived shares this run");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user