snakemake-executor-plugin-slurm 0.3.2__py3-none-any.whl → 0.4.1__py3-none-any.whl

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.

@@ -67,7 +67,14 @@ class Executor(RemoteExecutor):
67
67
 
68
68
  log_folder = f"group_{job.name}" if job.is_group() else f"rule_{job.name}"
69
69
 
70
- slurm_logfile = os.path.abspath(f".snakemake/slurm_logs/{log_folder}/%j.log")
70
+ try:
71
+ wildcard_str = f"_{'_'.join(job.wildcards)}" if job.wildcards else ""
72
+ except AttributeError:
73
+ wildcard_str = ""
74
+
75
+ slurm_logfile = os.path.abspath(
76
+ f".snakemake/slurm_logs/{log_folder}/%j{wildcard_str}.log"
77
+ )
71
78
  os.makedirs(os.path.dirname(slurm_logfile), exist_ok=True)
72
79
 
73
80
  # generic part of a submission string:
@@ -107,8 +114,10 @@ class Executor(RemoteExecutor):
107
114
  if job.resources.get("mpi", False):
108
115
  if job.resources.get("nodes", False):
109
116
  call += f" --nodes={job.resources.get('nodes', 1)}"
110
- if job.resources.get("tasks", False):
111
- 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)}"
112
121
 
113
122
  cpus_per_task = job.threads
114
123
  if job.resources.get("cpus_per_task"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 0.3.2
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
@@ -0,0 +1,5 @@
1
+ snakemake_executor_plugin_slurm/__init__.py,sha256=sgumTnrMWWUTslJywjw_WoX_k5cx-UsMbvnFC9Vn9Ek,19994
2
+ snakemake_executor_plugin_slurm-0.4.1.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
3
+ snakemake_executor_plugin_slurm-0.4.1.dist-info/METADATA,sha256=gT36_OAj2fYfC32uaySUuF7kSaDPeQ6O1pfrZMSH3UY,1233
4
+ snakemake_executor_plugin_slurm-0.4.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
5
+ snakemake_executor_plugin_slurm-0.4.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: poetry-core 1.8.1
2
+ Generator: poetry-core 1.9.0
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,5 +0,0 @@
1
- snakemake_executor_plugin_slurm/__init__.py,sha256=CwqWOHG5IP2Nq8p9g03ekm5XPn524Xuqp292cLK3hZI,19746
2
- snakemake_executor_plugin_slurm-0.3.2.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
3
- snakemake_executor_plugin_slurm-0.3.2.dist-info/METADATA,sha256=RPaJpB3Es2EAxKV9ev-7QYQZmBGWi-jv24Ca8NrxhQw,1233
4
- snakemake_executor_plugin_slurm-0.3.2.dist-info/WHEEL,sha256=FMvqSimYX_P7y0a7UY-_Mc83r5zkBZsCYPm7Lr0Bsq4,88
5
- snakemake_executor_plugin_slurm-0.3.2.dist-info/RECORD,,