Skip to content

Commit aa3241c

Browse files
committed
files
Signed-off-by: oliver könig <[email protected]>
1 parent a4e8726 commit aa3241c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nemo_run/core/execution/dgxcloud.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,9 @@ def fetch_logs(
405405
job_subdir = self.job_dir[len(nemo_run_home) + 1 :] # +1 to remove the initial backslash
406406
self.pvc_job_dir = os.path.join(self.pvc_nemo_run_dir, job_subdir)
407407

408-
while (files := len(glob.glob(f"{self.pvc_job_dir}/logs/output-*.log"))) < self.nodes:
408+
files = []
409+
while len(files) < self.nodes:
410+
files = list(glob.glob(f"{self.pvc_job_dir}/logs/output-*.log"))
409411
logger.info(f"Waiting for {self.nodes - len(files)} log files to be created...")
410412
time.sleep(3)
411413

0 commit comments

Comments
 (0)