snakemake-executor-plugin-slurm 0.4.0__tar.gz → 0.4.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of snakemake-executor-plugin-slurm might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 0.4.0
3
+ Version: 0.4.1
4
4
  Summary: A Snakemake executor plugin for submitting jobs to a SLURM cluster.
5
5
  Home-page: https://github.com/snakemake/snakemake-executor-plugin-slurm
6
6
  License: MIT
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snakemake-executor-plugin-slurm"
3
- version = "0.4.0"
3
+ version = "0.4.1"
4
4
  description = "A Snakemake executor plugin for submitting jobs to a SLURM cluster."
5
5
  authors = [
6
6
  "Christian Meesters <meesters@uni-mainz.de>",
@@ -114,8 +114,10 @@ class Executor(RemoteExecutor):
114
114
  if job.resources.get("mpi", False):
115
115
  if job.resources.get("nodes", False):
116
116
  call += f" --nodes={job.resources.get('nodes', 1)}"
117
- if job.resources.get("tasks", False):
118
- call += f" --ntasks={job.resources.get('tasks', 1)}"
117
+
118
+ # fixes #40 - set ntasks regarlless of mpi, because
119
+ # SLURM v22.05 will require it for all jobs
120
+ call += f" --ntasks={job.resources.get('tasks', 1)}"
119
121
 
120
122
  cpus_per_task = job.threads
121
123
  if job.resources.get("cpus_per_task"):