mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-08 13:28:13 +08:00
s3 listings were cached, preventing new datasets from being accessible (#1408)
Fixes #1407
This commit is contained in:
@@ -42,8 +42,12 @@ class DataLocator:
|
|||||||
self.cname = self.path if self.protocol == "file" else self.uri_or_path
|
self.cname = self.path if self.protocol == "file" else self.uri_or_path
|
||||||
|
|
||||||
# fsspec.filesystem will throw RuntimeError if the protocol is unsupported
|
# fsspec.filesystem will throw RuntimeError if the protocol is unsupported
|
||||||
if self.protocol == "s3" and region_name:
|
if self.protocol == "s3":
|
||||||
self.fs = fsspec.filesystem(self.protocol, config_kwargs={"region_name": region_name})
|
if region_name:
|
||||||
|
config_kwargs = dict(region_name=region_name)
|
||||||
|
self.fs = fsspec.filesystem(self.protocol, listings_expiry_time=30, config_kwargs=config_kwargs)
|
||||||
|
else:
|
||||||
|
self.fs = fsspec.filesystem(self.protocol, listings_expiry_time=30)
|
||||||
else:
|
else:
|
||||||
self.fs = fsspec.filesystem(self.protocol)
|
self.fs = fsspec.filesystem(self.protocol)
|
||||||
|
|
||||||
|
|||||||
@@ -18,4 +18,4 @@ PyYAML>=5.3
|
|||||||
scipy>=1.3.0
|
scipy>=1.3.0
|
||||||
requests>=2.22.0
|
requests>=2.22.0
|
||||||
tiledb>=0.5.3
|
tiledb>=0.5.3
|
||||||
s3fs>=0.4.0,!=0.4.1
|
s3fs>=0.4.2
|
||||||
|
|||||||
Reference in New Issue
Block a user