This commit is contained in:
Dominik Moritz Roth 2023-07-07 12:25:54 +02:00
parent 648683fb9d
commit 0b77699fc5

View File

@ -156,9 +156,9 @@ class Slate():
num_jobs = 1
last_job_idx = num_jobs - 1
num_parallel_jobs = min(self.consume(config, 'slurm.num_parallel_jobs', num_jobs), num_jobs)
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, **config['slurm'])
job = pyslurm.JobSubmitDescription(s_name, script=script, array=array, **slurmC)
job_id = job.submit()
print(f'[i] Job submitted to slurm with id {job_id}')