Skip to content

Commit

Permalink
feat: random exponential backoff retry
Browse files Browse the repository at this point in the history
  • Loading branch information
rhajek committed Apr 26, 2021
1 parent 0b3c5b0 commit cd08898
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ The batching is configurable by ``write_options``\ :
- the number of milliseconds to retry first unsuccessful write. The next retry delay is computed using exponential random backoff. The retry interval is used when the InfluxDB server does not specify "Retry-After" header.
- ``5000``
* - **max_retry_time**
- maximum total retry timout in milliseconds.
- maximum total retry timeout in milliseconds.
- ``180_000``
* - **max_retries**
- the number of max retries when write fails
Expand Down
2 changes: 1 addition & 1 deletion influxdb_client/client/write_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def to_retry_strategy(self):
max_retry_delay=self.max_retry_delay / 1_000,
max_retry_time=self.max_retry_time / 1_000,
exponential_base=self.exponential_base,
allowed_methods=["POST"])
method_whitelist=["POST"])

def __getstate__(self):
"""Return a dict of attributes that you want to pickle."""
Expand Down

0 comments on commit cd08898

Please sign in to comment.