[FIX] Cron error code for monitoring

This commit is contained in:
Sebastian Grewe 2014-02-05 16:16:23 +01:00
parent 499aa986c0
commit bdaa4933fa
2 changed files with 3 additions and 2 deletions

View File

@ -44,7 +44,7 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts = $tran
foreach ($aManualPayouts as $aUserData) $dMPTotalAmount += $aUserData['confirmed'];
if ($dMPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover MP payouts");
$monitoring->endCronjob($cron_name, 'E0078', 0, true);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
$log->logInfo(' found ' . count($aManualPayouts) . ' queued manual payouts');
@ -92,7 +92,7 @@ if ($setting->getValue('disable_auto_payouts') != 1 && $aAutoPayouts = $transact
foreach ($aAutoPayouts as $aUserData) $dAPTotalAmount += $aUserData['confirmed'];
if ($dAPTotalAmount > $dWalletBalance) {
$log->logError(" Wallet does not cover AP payouts");
$monitoring->endCronjob($cron_name, 'E0078', 0, true);
$monitoring->endCronjob($cron_name, 'E0079', 0, true);
}
$log->logInfo(' found ' . count($aAutoPayouts) . ' queued auto payouts');

View File

@ -74,4 +74,5 @@ $aErrorCodes['E0075'] = 'Upgrade required';
$aErrorCodes['E0076'] = 'No coins in wallet available';
$aErrorCodes['E0077'] = 'RPC method or connection failed';
$aErrorCodes['E0078'] = 'RPC method did not return 200 OK';
$aErrorCodes['E0079'] = 'Wallet does not cover payouts total amount';
?>