marqo-ai / py-marqo

Python client for Marqo
https://marqo.pages.dev/
Apache License 2.0
30 stars 5 forks source link

Improve cache refresh on error #161

Closed farshidz closed 1 year ago

farshidz commented 1 year ago

On ConnectionError, do not evict existing index URL prior to cache refresh. This is to avoid an incorrect IndexNotFound when a data plane is returning ConnectionError for other reasons. A repeated ConnectionError with cache eviction means the index is removed from cache, but cache isn't refreshed (due to cache duration not having passed). This will look like a missing index.