summaryrefslogtreecommitdiff
path: root/tests/test_retry.py
Commit message (Collapse)AuthorAgeFilesLines
* Failover handling improvements for RedisCluster and Async RedisCluster (#2377)Bar Shaul2022-11-101-1/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Cluster&AsyncCluster: Removed handling of timeouts/connection errors within the cluster loop, fixed "cannot pickle '_thread.lock' object" bug, added client's side failover handling improvements * Fixed linters * Type fixes * Added to CHANGES * Added getter and setter for the client's retry object and added more tests * Fixed linters * Fixed test * Fixed test_client_kill test * Changed get_default_backoff to default_backoff, removed retry_on_error and connection_error_retry_attempts from RedisCluster, default retry changed to no retries * Fixing linters * Reverting deletion of connection_error_retry_attempts to maintain backward compatibility * Updating retry object for existing and new connections * Changed the default value of reinitialize_steps from 10 to 5 * fix review comments Co-authored-by: Chayim <chayim@users.noreply.github.com> Co-authored-by: dvora-h <dvora.heller@redis.com> Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>
* `Retry()`: Support negative `retries` value (#2110)Kristján Valur Jónsson2022-04-281-0/+15
| | | | | | | * Support negative `retries` value * Add unit test * Add unittest for blocking api
* Support for specifying error types with retry (#1817)Bar Shaul2021-12-231-1/+124
|
* Added black and isort (#1734)Anas2021-11-301-4/+3
|
* Fix `retry` attribute in UnixDomainSocketConnection (#1604)nbraun-amazon2021-10-141-7/+9
|
* Add retry mechanism with backoff (#1494)nbraun-amazon2021-08-181-0/+66