Closed aldenks closed 18 hours ago
I haven't tested the backoff config yet, and I think it's a bug on my side where it's trying to call getitem
instead of getattr
(or maybe I have those two confused). I should fix this, but for now you can test it out with a named tuple and it'll probably work
If anyone comes across this, see the test here for an example of how to properly configure https://github.com/developmentseed/obstore/blob/main/tests/test_backoff.py
This package is great to have in the python ecosystem, thank you!
I'm having trouble configuring backoff retries. When I try to do something like the following:
I get
I also attempted to instantiate the config classes like
RetryConfig(max_retries=...)
rather than as dict literals, but when I runfrom obstore.store import RetryConfig, BackoffConfig
and variations on that I get an ImportError.Am I doing something wrong?