extra server on stten1/4/14 tbt
This commit is contained in:
parent
141e1361bb
commit
f3b19fd32b
|
|
@ -46,10 +46,11 @@ class ArchiveSynchronizer(Component):
|
||||||
|
|
||||||
self._do_set_period({"period": float(self.config[self.name]["poll_time"])})
|
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.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"])
|
if self.name == "archive_synchronizer":
|
||||||
self.gcs_client._http.mount("", HTTPAdapter(max_retries=Retry(total=0))) # this seems to be useless
|
self.gcs_client = storage.Client.from_service_account_json(self.config[self.name]["service_account_json"])
|
||||||
self.gcs_client._http.adapters.move_to_end("", last=False) # this seems to be useless
|
self.gcs_client._http.mount("", HTTPAdapter(max_retries=Retry(total=0))) # this seems to be useless
|
||||||
self.bucket_id = self.config[self.name]["bucket_id"]
|
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
|
self.gcs_bucket = None
|
||||||
|
|
||||||
@db.connection_context()
|
@db.connection_context()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user