You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[data][train] Refactor call_with_retry into shared library and use it to retry checkpoint upload (#56608)
This PR moves `call_with_retry` from `ray/data/_internal` to
`ray/_private` so that it can be used in other libraries like Ray Train.
It also adds a new `retry` decorator that wraps around
`call_with_retry`. Note that I had to remove `*` from
`call_with_retry`'s arguments to get the decorator to work on Python
object methods because Python passes `self` as one of the `*args`.
---------
Signed-off-by: Timothy Seah <tseah@anyscale.com>
Signed-off-by: Douglas Strodtman <douglas@anyscale.com>
DOC402: Function `make_async_gen` has "yield" statements, but the docstring does not have a "Yields" section
1242
1242
DOC404: Function `make_async_gen` yield type(s) in docstring not consistent with the return annotation. Return annotation exists, but docstring "yields" section does not exist or has 0 type(s).
1243
1243
DOC103: Method `RetryingPyFileSystemHandler.__init__`: Docstring arguments are different from function arguments. (Or could be other formatting issues: https://jsh9.github.io/pydoclint/violation_codes.html#notes-on-doc103 ). Arguments in the function signature but not in the docstring: [retryable_errors: List[str]]. Arguments in the docstring but not in the function signature: [context: ].
1244
-
DOC104: Function `call_with_retry`: Arguments are the same in the docstring and the function signature, but are in a different order.
1245
-
DOC105: Function `call_with_retry`: Argument names match, but type hints in these args do not match: f, description, match, max_attempts, max_backoff_s
1246
-
DOC201: Function `call_with_retry` does not have a return section in docstring
1247
1244
DOC104: Function `iterate_with_retry`: Arguments are the same in the docstring and the function signature, but are in a different order.
1248
1245
DOC105: Function `iterate_with_retry`: Argument names match, but type hints in these args do not match: iterable_factory, description, match, max_attempts, max_backoff_s
1249
1246
DOC001: Method `__init__` Potential formatting errors in docstring. Error message: No specification for "Args": ""
0 commit comments