Skip to content

Commit 3efc25b

Browse files
committed
Retry upload, download, list files 3 times
1 parent fa8713c commit 3efc25b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

azure_blob_interface/azure_blob.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def download(
3838
prefix: str,
3939
path_local: Optional[Path] = None,
4040
overwrite: bool = False,
41-
retries: int = 1,
41+
retries: int = 3,
4242
**kwargs,
4343
):
4444
"""The data will be downloaded to path_local
@@ -102,7 +102,7 @@ def upload(
102102
path_upload: Optional[Path] = None,
103103
overwrite: bool = True,
104104
carry: Optional[Path] = None,
105-
retries: int = 1,
105+
retries: int = 3,
106106
**kwargs,
107107
) -> Union[str, List[str]]:
108108
"""The data will up loaded to dir path_upload from dir path_local
@@ -183,7 +183,7 @@ def delete(self, prefix: str):
183183
self.container.delete_blob(file_path)
184184

185185
def list_files(
186-
self, prefix: str, glob: str = None, recursive: bool = False, retries: int = 1
186+
self, prefix: str, glob: str = None, recursive: bool = False, retries: int = 3
187187
):
188188
"""Assumes prefix is a directory and list all files and directories below it.
189189
If recursive is set, glob is ignored."""

0 commit comments

Comments
 (0)