Skip to content

Commit 974ac42

Browse files
authored
Merge branch 'main' into FSTORE-1667
2 parents 667631d + 0503b3a commit 974ac42

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/hopsworks_common/core/dataset_api.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def _archive(
744744

745745
# Wait for zip file to appear. When it does, check that parent dir zipState is not set to CHOWNING
746746
count = 0
747-
while timeout is None:
747+
while True:
748748
if action == "zip":
749749
zip_path = remote_path + ".zip"
750750
# Get the status of the zipped file
@@ -771,7 +771,7 @@ def _archive(
771771
return True
772772
time.sleep(1)
773773
count += 1
774-
if count >= timeout:
774+
if timeout is not None and count >= timeout:
775775
self._log.info(
776776
f"Timeout of {timeout} seconds exceeded while {action} {remote_path}."
777777
)

0 commit comments

Comments
 (0)