snakemake / snakemake-executor-plugin-slurm

A Snakemake executor plugin for submitting jobs to a SLURM cluster
MIT License
18 stars 19 forks source link

All SLURM jobs created by snakemake have the same name #83

Closed xapple closed 6 months ago

xapple commented 6 months ago

It seems like the SLURM job names are simply assigned with UUIDs here:

https://github.com/snakemake/snakemake-executor-plugin-slurm/blob/912df8380b00742d256f42db8e7ab20d3836715b/snakemake_executor_plugin_slurm/__init__.py#L52

However in my testing, I would end up with all the jobs launched in my snakemake pipeline having the same name.

uuid

Any ideas why that could be ?

cmeesters commented 6 months ago

Any ideas why that could be ?

Yes.

xapple commented 6 months ago

I read the documentation, but it doesn't explain why all the jobs would have the same UUID. Isn't the point of using UUIDs to have a different, unique one generated every time? Besides, with all jobs having the same name, one cannot use the job name to query it.

cmeesters commented 6 months ago

As we state: The plugin queries the job status of all jobs of a workflow using this name, which is unique per workflow. Hence, the ability to query with the comment, which is the rule name per job.