increase retry time to 15

UCOD-21
Omar Shahbaz 2 weeks ago
parent df97346124
commit f6f25909ab

@ -159,7 +159,7 @@ public class UcoAccountService {
} }
private List<AccountDetail> fetchDepositAccountWithRetry(String porOrgacode, String cmpCustcode) { private List<AccountDetail> fetchDepositAccountWithRetry(String porOrgacode, String cmpCustcode) {
int maxAttempts = 3; int maxAttempts = 15;
int delayMs = 2000; int delayMs = 2000;
List<AccountDetail> accounts = fetchdepositAccountFromCiihive(porOrgacode, cmpCustcode); List<AccountDetail> accounts = fetchdepositAccountFromCiihive(porOrgacode, cmpCustcode);
for (int attempt = 1; attempt < maxAttempts && accounts.isEmpty(); attempt++) { for (int attempt = 1; attempt < maxAttempts && accounts.isEmpty(); attempt++) {

Loading…
Cancel
Save