#710·tenacity

零指数乘数可能溢出到最大等待时间

作者: emme1t创建于 2026年9月12日更新于 2026年9月12日

将指数乘数设置为零可能会在进行足够多尝试后产生最大的等待时间。我用 Python 3.13.13 在主分支(3e58094d3)上重现了此问题:

python
from types import SimpleNamespace
from tenacity import wait_exponential, wait_exponential_jitter