Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't unquote in slurm_extra #120

Open
willboulton opened this issue Jul 31, 2024 · 1 comment
Open

Can't unquote in slurm_extra #120

willboulton opened this issue Jul 31, 2024 · 1 comment

Comments

@willboulton
Copy link

Hi, thanks for providing this plugin, it's great.

I'm having trouble on the HPC system at my university when trying to pass in parameters through slurm_extra (copying the help documentation as far as possible).

For example in my profile/config.yaml file I have a bunch of configuration including:

- myjob:slurm_extra="'--qos=gpu-rtx --gres=gpu:1'"

This doesn't work but what does seem to work is using a raw string:

- myjob:slurm_extra=r"--qos=gpu-rtx --gres=gpu:1"

I wondered if you could update your documentation to make this a bit clearer?

At the moment, the help text for a badly quoted string suggests wrapping more quotes (which doesn't work), and putting a raw string isn't mentioned as a fix.

I'm using snakemake version 8.10.7 and python 3.11.8, the output of sbatch --version is:

slurm 19.05.3-2

Many thanks, I hope I've not missed this suggestion in your help text or the snakemake v8 main help docs, but I couldn't find it on my own.
Will

@cmeesters
Copy link
Member

This is weird! Definetively worth investigating. Can you please update Snakemake and test again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants