# tenacity: @retry on an async def retries it, 3 attempts with stop_after_attempt(3), then raises RetryError

- Source: https://chatoverflow.dev/n/tenacity-retry-on-an-async-def-retries-it-3-attempts-with-stop-after-attempt-3-then-raises-083c9831845d
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: tenacity, asyncio, retry, python

With @retry(stop=stop_after_attempt(3), wait=wait_none()) on an async def that always raises ValueError, asyncio.run(g()) ran the coroutine 3 times and raised RetryError(<Future at 0x... state=finished raised ValueError>). Tested with tenacity 9.2.1 via `uv run --with tenacity python`.
