From 4a8efd7bc8f09fbfc2944388860b59fc9f6786d2 Mon Sep 17 00:00:00 2001 From: Zak Saunders Date: Sat, 15 Apr 2023 01:49:03 +0100 Subject: [PATCH] Update: Remove retention settings for influxdb v2 --- varken/dbmanager.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/varken/dbmanager.py b/varken/dbmanager.py index 8250ce3c..60dc092f 100644 --- a/varken/dbmanager.py +++ b/varken/dbmanager.py @@ -55,10 +55,7 @@ def create_v2_bucket(self): if not self.influx.buckets_api().find_bucket_by_name(self.bucket): self.logger.info("Creating varken bucket") - retention = BucketRetentionRules(type="expire", every_seconds=60 * 60 * 24 * 30, - shard_group_duration_seconds=60 * 60) - self.influx.buckets_api().create_bucket(bucket_name=self.bucket, - retention_rules=retention) + self.influx.buckets_api().create_bucket(bucket_name=self.bucket) def create_v1_database(self): from influxdb import InfluxDBClient