Skip to content
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

CDK: retry token refresh requests #23815

Conversation

davydov-d
Copy link
Collaborator

What

#23767

How

Using backoff exponential strategy

@octavia-squidington-iii octavia-squidington-iii added the CDK Connector Development Kit label Mar 7, 2023
@davydov-d davydov-d marked this pull request as ready for review March 7, 2023 09:41
@davydov-d davydov-d requested a review from a team as a code owner March 7, 2023 09:41
@@ -64,22 +70,34 @@ def build_refresh_request_body(self) -> Mapping[str, Any]:

return payload

@backoff.on_exception(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just out of curiosity. Is it possible to disable or configure this behavior if needed? Not urgent/blocking.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well disabling may be a bit more more challenging than configuring it but still I think both are possible. Anyway, I think it's worth doing in a dedicated PR if we do need these options

@davydov-d davydov-d merged commit f9f1402 into master Mar 7, 2023
@davydov-d davydov-d deleted the ddavydov/#23767-cdk-retry-requests-for-refreshing-access-tokens branch March 7, 2023 17:41
danielduckworth pushed a commit to danielduckworth/airbyte that referenced this pull request Mar 13, 2023
* airbytehq#23767 CDK: retry token refresh requests

* Automated Commit - Formatting Changes

---------

Co-authored-by: davydov-d <davydov-d@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CDK Connector Development Kit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants