Skip to content

Commit

Permalink
fix: fixed string for constraints - see issue #58 (#64)
Browse files Browse the repository at this point in the history
There is no test - yet. I am not sure how to test constraints in the
dummy SLURM setup of the CI.
  • Loading branch information
cmeesters authored Aug 6, 2024
1 parent c0f8fee commit 89e10ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion snakemake_executor_plugin_slurm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def run_job(self, job: JobExecutorInterface):
)

if job.resources.get("constraint"):
call += f" -C {job.resources.constraint}"
call += f" -C '{job.resources.constraint}'"
if job.resources.get("mem_mb_per_cpu"):
call += f" --mem-per-cpu {job.resources.mem_mb_per_cpu}"
elif job.resources.get("mem_mb"):
Expand Down

0 comments on commit 89e10ff

Please sign in to comment.