We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0c1b45 commit 240fed0Copy full SHA for 240fed0
google/api_core/retry/retry_base.py
@@ -214,6 +214,8 @@ def _retry_error_helper(
214
raise final_exc from source_exc
215
if on_error_fn is not None:
216
on_error_fn(exc)
217
+ # next_sleep is fetched after the on_error callback to allow clients
218
+ # to update sleep_generator values dynamically in response to errors
219
try:
220
next_sleep = next(sleep_generator)
221
except StopIteration:
0 commit comments