-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(tableau): retry if 502 error code #12233
Conversation
@@ -186,6 +186,11 @@ | |||
except ImportError: | |||
REAUTHENTICATE_ERRORS = (NonXMLResponseError,) | |||
|
|||
RETRIABLE_ERROR_CODES = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
open questions:
- should we include others such as
503 service Unavailable
,408 Request Timeout
, ....? - should we make this configurable in the recipe?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we include others such as 503 service Unavailable, 408 Request Timeout, ....?
We can add these codes for retry. Can add 408 if we got that from tableau and if request is likely to succeed on retry although given it represents client side idleness, that may not be relevant here.
should we make this configurable in the recipe?
I believe - making it configurable is okay for one-off debugging but would not help us make source more robust, as we would ideally always want to update source such that known retriable error codes are always retried. So I would rather not add it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have aligned on existing retrievable error codes and added 408
I didn't know about the retry configuration at Tableau Server
level. Either it is not working as expected or not correctly configured.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
True, this needs to be looked into.
@@ -186,6 +186,11 @@ | |||
except ImportError: | |||
REAUTHENTICATE_ERRORS = (NonXMLResponseError,) | |||
|
|||
RETRIABLE_ERROR_CODES = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should we include others such as 503 service Unavailable, 408 Request Timeout, ....?
We can add these codes for retry. Can add 408 if we got that from tableau and if request is likely to succeed on retry although given it represents client side idleness, that may not be relevant here.
should we make this configurable in the recipe?
I believe - making it configurable is okay for one-off debugging but would not help us make source more robust, as we would ideally always want to update source such that known retriable error codes are always retried. So I would rather not add it.
Yet another retriable error code we have received recently
Checklist