We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ea0628 commit 7eef18eCopy full SHA for 7eef18e
deeplake/core/storage/azure.py
@@ -104,6 +104,7 @@ def __getitem__(self, path):
104
105
def __delitem__(self, path):
106
self.check_readonly()
107
+ self._check_update_creds()
108
blob_client = self.container_client.get_blob_client(
109
f"{self.root_folder}/{path}"
110
)
@@ -364,7 +365,8 @@ def _check_update_creds(self, force=False):
364
365
from azure.core.credentials import AzureSasCredential # type: ignore
366
367
if self.expiration and (
- force or float(self.expiration) < datetime.now(timezone.utc).timestamp()
368
+ force
369
+ or float(self.expiration) - datetime.now(timezone.utc).timestamp() < 300
370
):
371
client = DeepLakeBackendClient(self.token)
372
org_id, ds_name = self.tag.split("/")
0 commit comments