mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
updated shouldBeRetryableServerErrorException in base api action utils to only retry on 500 errors if query or get actions
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user