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

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