[go: up one dir, main page]

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

fix: Change retry multiplier from 1.3 to 4, for requests that retry Resour… #971

Merged
merged 4 commits into from
Aug 7, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: Change retry multiplier from 1.3 to 4, for requests that retry R…
…esourceExhausted.
  • Loading branch information
amfisher-404 committed Aug 3, 2023
commit 792f461b02260a10e87e848cd50165fd6d878785
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/publisher/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@ async def sample_publish():
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
multiplier=4.0,
predicate=retries.if_exception_type(
core_exceptions.Aborted,
core_exceptions.Cancelled,
Expand Down
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/publisher/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def _prep_wrapped_messages(self, client_info):
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
multiplier=4.0,
predicate=retries.if_exception_type(
core_exceptions.Aborted,
core_exceptions.Cancelled,
Expand Down
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/subscriber/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1383,7 +1383,7 @@ def request_generator():
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
multiplier=4.0,
predicate=retries.if_exception_type(
core_exceptions.Aborted,
core_exceptions.DeadlineExceeded,
Expand Down
2 changes: 1 addition & 1 deletion google/pubsub_v1/services/subscriber/transports/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ def _prep_wrapped_messages(self, client_info):
default_retry=retries.Retry(
initial=0.1,
maximum=60.0,
multiplier=1.3,
multiplier=4.0,
predicate=retries.if_exception_type(
core_exceptions.Aborted,
core_exceptions.DeadlineExceeded,
Expand Down