[FIX] Cron error code for monitoring
This commit is contained in:
parent
499aa986c0
commit
bdaa4933fa
@ -44,7 +44,7 @@ if ($setting->getValue('disable_manual_payouts') != 1 && $aManualPayouts = $tran
|
|||||||
foreach ($aManualPayouts as $aUserData) $dMPTotalAmount += $aUserData['confirmed'];
|
foreach ($aManualPayouts as $aUserData) $dMPTotalAmount += $aUserData['confirmed'];
|
||||||
if ($dMPTotalAmount > $dWalletBalance) {
|
if ($dMPTotalAmount > $dWalletBalance) {
|
||||||
$log->logError(" Wallet does not cover MP payouts");
|
$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');
|
$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'];
|
foreach ($aAutoPayouts as $aUserData) $dAPTotalAmount += $aUserData['confirmed'];
|
||||||
if ($dAPTotalAmount > $dWalletBalance) {
|
if ($dAPTotalAmount > $dWalletBalance) {
|
||||||
$log->logError(" Wallet does not cover AP payouts");
|
$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');
|
$log->logInfo(' found ' . count($aAutoPayouts) . ' queued auto payouts');
|
||||||
|
|||||||
@ -74,4 +74,5 @@ $aErrorCodes['E0075'] = 'Upgrade required';
|
|||||||
$aErrorCodes['E0076'] = 'No coins in wallet available';
|
$aErrorCodes['E0076'] = 'No coins in wallet available';
|
||||||
$aErrorCodes['E0077'] = 'RPC method or connection failed';
|
$aErrorCodes['E0077'] = 'RPC method or connection failed';
|
||||||
$aErrorCodes['E0078'] = 'RPC method did not return 200 OK';
|
$aErrorCodes['E0078'] = 'RPC method did not return 200 OK';
|
||||||
|
$aErrorCodes['E0079'] = 'Wallet does not cover payouts total amount';
|
||||||
?>
|
?>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user