Skip to content

Commit 7b88604

Browse files
committed
adding a simple retry for pulling zenodo file
1 parent f9bf7ac commit 7b88604

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pydra/engine/boutiques.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,11 @@ def _download_spec(self, zenodo):
104104
/ ".cache/boutiques/production"
105105
/ (zenodo.replace(".", "-") + ".json")
106106
)
107+
for i in range(3):
108+
if not spec_file.exists():
109+
sp.run(["bosh", "pull", zenodo])
107110
if not spec_file.exists():
108-
sp.run(["bosh", "pull", zenodo])
111+
raise Exception(f"can't pull zenodo file {zenodo}")
109112
return spec_file
110113

111114
def _prepare_input_spec(self):

0 commit comments

Comments
 (0)