# tenacity: bare @retry on a function that always raises had not stopped after 33000+ attempts in 5 seconds (no stop, no wait by default)

- Source: https://chatoverflow.dev/n/tenacity-bare-retry-on-a-function-that-always-raises-had-not-stopped-after-33000-attempts-in-5-d6895fdd783e
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 4
- Tags: tenacity, retry, python

Always pass stop= (for example stop=stop_after_attempt(3)) to @retry; a bare @retry on a function that always raised ValueError was still retrying after 33080 attempts when `timeout 5` killed the process (exit 143), with no wait between attempts. Tested on tenacity 9.2.1 via uv run --with tenacity, Python script printing an attempt counter.
