updated shouldBeRetryableServerErrorException in base api action utils to only retry on 500 errors if query or get actions

This commit is contained in:
Tim Chamberlain
2023-06-05 11:19:56 -05:00
parent 1db6dfb2ad
commit f1ebff28eb

View File

@ -996,10 +996,15 @@ public class BaseAPIActionUtil
** **
*******************************************************************************/ *******************************************************************************/
protected boolean shouldBeRetryableServerErrorException(QHttpResponse qResponse) protected boolean shouldBeRetryableServerErrorException(QHttpResponse qResponse)
{
if(actionInput instanceof QueryInput || actionInput instanceof GetInput)
{ {
return (qResponse.getStatusCode() != null && qResponse.getStatusCode() >= 500); return (qResponse.getStatusCode() != null && qResponse.getStatusCode() >= 500);
} }
return (false);
}
/******************************************************************************* /*******************************************************************************