Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

fix: update timeout config for Insights apis #47

Closed
wants to merge 1 commit into from

Conversation

whoamnick
Copy link

Two options to fix #46 are to None the "retry_params_name" field, or to just use "no_retry_1_params" which is effectively a constant timeout. I went with the latter.

By naming the retry_params_name it will instantiate a google.api_core.timeout.ExponentialTimeout object built out of the retry params with 0 timeout leaving the "timeout_millis" in the method ignored. Instead if None is used a ConstantTimeout object is built and the timeout_millis is properly populated. So I don't fully understand why both are here, however using "no_retry_1_params" it is the same end result and leaves it consistent with some other methods.

Fixes #46 馃

@whoamnick whoamnick requested a review from a team as a code owner October 21, 2020 16:19
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Oct 21, 2020
@whoamnick
Copy link
Author

Closing this after discussions with the team that it will be fixed at the source config

@whoamnick whoamnick closed this Oct 26, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Immediate timeout on ListInsights calls
1 participant