Skip to content

Conversation

@amcmahon-rh
Copy link
Contributor

XML-RPC Protocol Error exceptions were not being caught by the retry decorator, so these errors weren't getting retried. Just need to add in the specific exception into the list of retried exceptions.

@kdudka
Copy link
Contributor

kdudka commented Mar 25, 2022

@amcmahon-rh They were not there because they are not recoverable, as I understand it. Do you have any example where the retry would help after xmlrpclib.ProtocolError?

@rohanpm
Copy link
Contributor

rohanpm commented Mar 28, 2022

ProtocolError is raised if the XML-RPC request gets an HTTP response of any status other than 200, so it may or may not be recoverable. A request failing due to temporary lack of resources on the server is an example where you may be able to recover by retrying.

@kdudka
Copy link
Contributor

kdudka commented Mar 28, 2022

@rohanpm You are right! Then it makes sense to retry the request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants