fix: wrong args for slurm

This commit is contained in:
Dominik Moritz Roth 2023-07-07 12:27:56 +02:00
parent 0b77699fc5
commit d4fb8858d8

View File

@ -158,7 +158,7 @@ class Slate():
last_job_idx = num_jobs - 1
num_parallel_jobs = min(self.consume(slurmC, 'num_parallel_jobs', num_jobs), num_jobs)
array = f'0-{last_job_idx}%{num_parallel_jobs}'
job = pyslurm.JobSubmitDescription(s_name, script=script, array=array, **slurmC)
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}')