This commit is contained in:
Dominik Moritz Roth 2023-07-12 11:49:30 +02:00
parent cb8a454639
commit e61bf250a5

View File

@ -121,7 +121,7 @@ class Slate():
if isinstance(conf, collections.abc.Mapping):
val = conf.get(k, default)
else:
if default:
if default != None:
return default
raise Exception('')
else:
@ -188,7 +188,7 @@ class Slate():
array = f'0-{last_job_idx}%{num_parallel_jobs}'
job = pyslurm.JobSubmitDescription(name=s_name, script=script, array=array, **slurmC)
job_id = job.submit()
print(f'[i] Job submitted to slurm with id {job_id}')
print(f'[>] Job submitted to slurm with id {job_id}')
with open('job_hist.log', 'a') as f:
f.write(f'{filename}:{name} submitted to slurm with ids {job_id}_0-{num_jobs} on [git:{sha}] at {datetime.datetime.now()}\n')