scylladb / python-driver

ScyllaDB Python Driver, originally DataStax Python Driver for Apache Cassandra
https://python-driver.docs.scylladb.com
Apache License 2.0
70 stars 42 forks source link

introducing `ExponentialBackoffRetryPolicy` #298

Closed fruch closed 5 months ago

fruch commented 6 months ago

Adding new RetryPolicy the can do exponential backoff modeled similar to how it works in gocql

Fixes: https://github.com/scylladb/python-driver/issues/91 Ref: https://github.com/gocql/gocql/blob/34fdeebefcbf183ed7f916f931aa0586fdaa1b40/policies.go#L156