Skip to content

Commit

Permalink
fix: getting cpus_per_task from resources, correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters committed Apr 4, 2024
1 parent c9b10a7 commit cd27a58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake_executor_plugin_slurm_jobstep/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def run_job(self, job: JobExecutorInterface):
# has set the resources correctly.

call = "srun -n1 --cpu-bind=q "
call += f"--cpus-per-task {job.resources.cpus_per_task} "
call += f"--cpus-per-task {job.resources.get('cpus_per_task')} "
call += f"{self.format_job_exec(job)}"

self.logger.debug(job.is_group())
Expand Down

0 comments on commit cd27a58

Please sign in to comment.