Update slurm_handler.py
This commit is contained in:
parent
de7b6f87a4
commit
521fe06e7b
1 changed files with 4 additions and 0 deletions
|
|
@ -70,6 +70,10 @@ def create_objective(
|
|||
logger.error('Error submitting SLURM job')
|
||||
raise
|
||||
|
||||
while not os.path.isfile(results_path):
|
||||
print(f"Waiting for {results_path} to be created...")
|
||||
time.sleep(5)
|
||||
|
||||
while True:
|
||||
df = pd.read_csv(results_path)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue