File tree Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Expand file tree Collapse file tree 4 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -280,6 +280,8 @@ def on_error(e):
280
280
maximum (float): The maximum amount of time to delay in seconds.
281
281
multiplier (float): The multiplier applied to the delay.
282
282
timeout (float): How long to keep retrying, in seconds.
283
+ Note: timeout is only checked before initiating a retry, so the target may
284
+ run past the timeout value as long as it is healthy.
283
285
on_error (Callable[Exception]): A function to call while processing
284
286
a retryable exception. Any error raised by this function will
285
287
*not* be caught.
Original file line number Diff line number Diff line change @@ -265,6 +265,8 @@ def on_error(e):
265
265
maximum (float): The maximum amount of time to delay in seconds.
266
266
multiplier (float): The multiplier applied to the delay.
267
267
timeout (Optional[float]): How long to keep retrying in seconds.
268
+ Note: timeout is only checked before initiating a retry, so the target may
269
+ run past the timeout value as long as it is healthy.
268
270
on_error (Optional[Callable[Exception]]): A function to call while processing
269
271
a retryable exception. Any error raised by this function will
270
272
*not* be caught.
Original file line number Diff line number Diff line change @@ -108,6 +108,8 @@ def retry_target(
108
108
sleep_generator (Iterable[float]): An infinite iterator that determines
109
109
how long to sleep between retries.
110
110
timeout (Optional[float]): How long to keep retrying the target.
111
+ Note: timeout is only checked before initiating a retry, so the target may
112
+ run past the timeout value as long as it is healthy.
111
113
on_error (Optional[Callable[Exception]]): If given, the on_error
112
114
callback will be called with each retryable exception raised by the
113
115
target. Any error raised by this function will *not* be caught.
@@ -250,6 +252,8 @@ class Retry(_BaseRetry):
250
252
maximum (float): The maximum amount of time to delay in seconds.
251
253
multiplier (float): The multiplier applied to the delay.
252
254
timeout (float): How long to keep retrying, in seconds.
255
+ Note: timeout is only checked before initiating a retry, so the target may
256
+ run past the timeout value as long as it is healthy.
253
257
on_error (Callable[Exception]): A function to call while processing
254
258
a retryable exception. Any error raised by this function will
255
259
*not* be caught.
Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ async def retry_target(
118
118
sleep_generator (Iterable[float]): An infinite iterator that determines
119
119
how long to sleep between retries.
120
120
timeout (Optional[float]): How long to keep retrying the target, in seconds.
121
+ Note: timeout is only checked before initiating a retry, so the target may
122
+ run past the timeout value as long as it is healthy.
121
123
on_error (Optional[Callable[Exception]]): If given, the on_error
122
124
callback will be called with each retryable exception raised by the
123
125
target. Any error raised by this function will *not* be caught.
@@ -187,6 +189,8 @@ class AsyncRetry(_BaseRetry):
187
189
maximum (float): The maximum amount of time to delay in seconds.
188
190
multiplier (float): The multiplier applied to the delay.
189
191
timeout (Optional[float]): How long to keep retrying in seconds.
192
+ Note: timeout is only checked before initiating a retry, so the target may
193
+ run past the timeout value as long as it is healthy.
190
194
on_error (Optional[Callable[Exception]]): A function to call while processing
191
195
a retryable exception. Any error raised by this function will
192
196
*not* be caught.
You can’t perform that action at this time.
0 commit comments