-
Notifications
You must be signed in to change notification settings - Fork 685
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
backoff.expo v2.0.0 breaking change #2829
Comments
Is no one else having this issue? Without the version pin, this completely breaks the grpc for me. As a quick fix, is there a downside to changing the version requirement to |
I am also experiencing this. I just pinned the version and haven't had any issues, but it's not great. I think this library should either handle all of the versions specified or narrow it's version constraints. |
Just adding that this is also a show stopper for me. |
Are folks ok with changing the dependency to |
Same here: I pinned |
I would prefer |
Adding my +1 to fixing the library. This is definitely a widespread problem and is affecting me too. |
The problem here is the direct use of the generator returned by This behavior changed in |
Describe your environment
pyproject.toml
dependencies installed via poetry:Steps to reproduce
What is the expected behavior?
Periodic backoff behavior in the logs
What is the actual behavior?
After each transient error reported in the log, an exception is raised
Additional context
I believe the problem is related to changed behavior in
backoff 2.0.0
. Seebackoff/_wait_gen.py
at https://github.com/litl/backoff/compare/v1.11.1..v2.0.0 . Theexpo()
function nowyield
s once because it's called elsewhere as a coroutine, which returns aNone
whereopentelemetry
expects anint
. It's not clear to me thatexpo()
is meant for direct usage given thatbackoff
docs show decorators, and the function is in a dunder module. That said, the function is also exported inbackoff
's__all__
, so perhaps they meant to make a breaking change?Given
opentelemetry
's wide version range for the dependency (opentelemetry-python/exporter/opentelemetry-exporter-otlp-proto-grpc/setup.cfg
Line 48 in b9a6358
I was able to fix it in my app by pinning
backoff = "1.11.1"
The text was updated successfully, but these errors were encountered: