tenacity icon indicating copy to clipboard operation
tenacity copied to clipboard

Retrying library for Python

Results 163 tenacity issues
Sort by recently updated
recently updated
newest added

[Documentation page](https://pypi.python.org/pypi/tenacity) on PyPI has broken formatting. The beginning looks like this: ``` Retry code until it succeeeds Tenacity ======== .. image:: https://img.shields.io/pypi/v/tenacity.svg :target: https://pypi.python.org/pypi/tenacity .. image:: https://img.shields.io/travis/jd/tenacity.svg :target: https://travis-ci.org/jd/tenacity...

help wanted
documentation

My lib uses aiohttp. I want a retry mechanism when we are logout from the server. So here what I write: ```python async def relogin(retry_state): await retry_state.args[0].login() print(retry_state) @retry( retry=retry_if_exception_type(NotAuthenticatedException),...

`stop_max_attempt_number` can be used in retry decorator - https://github.com/rholder/retrying/blob/1d5699348d707e377aad7488da6a8a1b48a65933/retrying.py#L66

Neither PyPI or the README link to the docs on RTD. I only found them because I saw the RTD configuration file on Github. Other than that, there was no...

It would be awesome to use posix exit codes and a tenacity runner

enhancement
help wanted

When using the `@retry` decorator on a function/method, the name of the function is applied to all created retry states, which gets passed to all callbacks, and allows functions like...

If a user decorates a function with `@retry(inst)` for a `retry_base` instance `inst` for any of the builtin strategies as a positional argument—an easy misspelling of `@retry(retry=inst)`)—`tenacity` will hang indefinitely...

I'm using `before_sleep` with async - and I can see same function is being retried, but I'd like to see what arguments are for each retried function (as same fun...

I'm getting fairly different results with two different implementations. Here is implementation 1 ``` request_semaphore = asyncio.Semaphore(5) async def _send_async_request(client: AsyncClient, method, auth, url, body): async with request_semaphore: try: async...

I want the wait time to include the time spent running the function-under-retry. (gantt chart to follow)

enhancement