Skip to content

Commit 053f478

Browse files
committed
change poll time to longer
1 parent 77dd0ac commit 053f478

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

batchtools/br.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def run(args: argparse.Namespace):
235235

236236
if result_phase == "succeeded":
237237
# Wait for the log file to appear (rsync may take a moment)
238-
max_wait = 10 # seconds
239-
wait_interval = 0.5
238+
max_wait = 3600 # seconds
239+
wait_interval = 1
240240
elapsed = 0
241241

242242
while not log_file.exists() and elapsed < max_wait:
@@ -247,7 +247,7 @@ def run(args: argparse.Namespace):
247247
subprocess.run(["cat", f"jobs/{job_name}/{job_name}.log"], check=True)
248248
print(f"RUNDIR: jobs/{job_name}")
249249
else:
250-
print(f"Warning: Log file not found after {max_wait}s. Check jobs/{job_name}/")
250+
print(f"Warning: Log file not found after {max_wait}s. Check jobs/{job_name}")
251251
else:
252252
print("Something went wrong with running your job. Check over your code and please try again.")
253253

0 commit comments

Comments
 (0)