• Home
  • Raw
  • Download

Lines Matching full:retry

27   """Returns a retry handler for given exception(s).
40 """The strategy of the delay between each retry attempts.
61 """Sleep to delay the current retry."""
78 """Decorator to handle retry on exception.
91 checks whether the retry should be continued or not based on the given
95 If the |handler| returns True, retry will be continued. Otherwise no
96 further retry will be made, and an exception will be raised.
99 exception class(es) (or its subclass), continues to retry. Otherwise no
100 further retry will be made, and an exception will be raised.
101 - If neither is given, just continues to retry on any Exception instance.
138 max_retry: A positive integer representing how many times to retry the
151 instance, instead of the one raised from the retry body.
156 further retry will be made, and the exception will be propagated to
203 # In case callback raises an exception, quit the retry.
205 logging.error('Ending retry due to Exception raised by a callback. '
230 """Generic retry loop w/ optional break out depending on exceptions.
232 Runs functor(*args, **(kwargs excluding params for retry)) as a retry body.
261 Runs functor(*args, **(kwargs excluding params for retry)) as a retry body.
287 """Wrapper for run that will retry a command.
292 max_retry: A positive integer representing how many times to retry
298 retry_on: If provided, we will retry on any exit codes in the given list.
300 signal. By default, we retry on all non-negative exit codes.
302 fall back to |retry_on|, or True/False to set the retry directly.
318 """Return whether we should retry on a given exception."""
340 """Returns whether any run should retry on a given exception."""
351 """Wrapper for run that will retry a command
389 # retry related (dns failed, timeout occurred, etc, see the manpage for
396 # Finally, we do not use curl's --retry option since it generally doesn't
397 # actually retry anything; code 18 for example, it will not retry on.
404 set. For the 4xx, we don't want to retry. We have to look at the output.