-
Notifications
You must be signed in to change notification settings - Fork 26
Closed
Description
Description:
Retry does not work as expected. Every time a retry condition comes, the code will just raise an exception.
Items with the issue:
- Async transporter: https://github.com/algolia/algoliasearch-client-python/blob/main/algoliasearch/http/transporter.py
- Sync transporter: https://github.com/algolia/algoliasearch-client-python/blob/main/algoliasearch/http/transporter_sync.py
Side-affected items:
- All modules that call Algolia servers from the algoliasearch-client-python lib
algoriasearch_django
lib on https://github.com/algolia/algoliasearch-django/blob/master/algoliasearch_django/registration.py
Fix Suggestion: Consider a retry flag, implement retry with exponential waiting time, so clients won’t make the life of the servers even harder when recovering from some outage, or just keep the loop going to the next server so the retry will target the next host, avoiding exponential waiting.
If retry will be really in place, it may be a good idea to have some value to manage it, on/off
, retry after
etc…
Metadata
Metadata
Assignees
Labels
No labels