swh.objstorage.backends.winery.sleep module#

swh.objstorage.backends.winery.sleep.sleep_exponential(min_duration: float, factor: float, max_duration: float, message: str) Callable[[int], None][source]#

Return a function that returns a callback that sleeps min_duration, then increases that by factor at every call, up to max_duration.