Update slurm_handler.py

This commit is contained in:
Ceferino Patino 2024-10-10 22:05:27 -05:00 committed by GitHub
commit 521fe06e7b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)