Skip to content

Commit

Permalink
refactor(influxdb): define communication paramaters like retries, del…
Browse files Browse the repository at this point in the history
…ays,
  • Loading branch information
origox committed Dec 29, 2023
1 parent 54ae843 commit 5d86641
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions app/db/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,13 @@ def __init__(self, host: str, token: str, org: str, database: str):
org=self.org,
database=self.database,
verify_ssl=self.verify_ssl,
batch_size=500,
flush_interval=10_000,
jitter_interval=2_000,
retry_interval=5_000,
max_retries=5,
max_retry_delay=30_000,
exponential_base=2,
)
logging.info("Successfully connected to influxdb database")

Expand Down

0 comments on commit 5d86641

Please sign in to comment.