We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 10faf24 commit f4ead42Copy full SHA for f4ead42
submitit/core/submission.py
@@ -41,8 +41,9 @@ def process_job(folder: Union[Path, str]) -> None:
41
logger.info(f"Loading pickle: {paths.submitted_pickle}")
42
wait_time = 60
43
for _ in range(wait_time):
44
- if not paths.submitted_pickle.exists():
45
- time.sleep(1)
+ if paths.submitted_pickle.exists():
+ break
46
+ time.sleep(1)
47
if not paths.submitted_pickle.exists():
48
raise RuntimeError(
49
f"Waited for {wait_time} seconds but could not find submitted jobs in path:\n{paths.submitted_pickle}"
0 commit comments