From f3b19fd32bb99bf15f56048329ee208a995eff1d Mon Sep 17 00:00:00 2001 From: neo Date: Fri, 6 Dec 2024 11:51:45 +0100 Subject: [PATCH] extra server on stten1/4/14 tbt --- src/components/archive_synchronizer.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/components/archive_synchronizer.py b/src/components/archive_synchronizer.py index 0eb3577..92dd4fa 100644 --- a/src/components/archive_synchronizer.py +++ b/src/components/archive_synchronizer.py @@ -46,10 +46,11 @@ class ArchiveSynchronizer(Component): self._do_set_period({"period": float(self.config[self.name]["poll_time"])}) self.hold_time = round(float(self.config[self.name]["hold_time"]) * 1000) - self.gcs_client = storage.Client.from_service_account_json(self.config[self.name]["service_account_json"]) - self.gcs_client._http.mount("", HTTPAdapter(max_retries=Retry(total=0))) # this seems to be useless - self.gcs_client._http.adapters.move_to_end("", last=False) # this seems to be useless - self.bucket_id = self.config[self.name]["bucket_id"] + if self.name == "archive_synchronizer": + self.gcs_client = storage.Client.from_service_account_json(self.config[self.name]["service_account_json"]) + self.gcs_client._http.mount("", HTTPAdapter(max_retries=Retry(total=0))) # this seems to be useless + self.gcs_client._http.adapters.move_to_end("", last=False) # this seems to be useless + self.bucket_id = self.config[self.name]["bucket_id"] self.gcs_bucket = None @db.connection_context()