snakemake-executor-plugin-slurm 0.3.2__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.
- {snakemake_executor_plugin_slurm-0.3.2 → snakemake_executor_plugin_slurm-0.4.1}/PKG-INFO +1 -1
- {snakemake_executor_plugin_slurm-0.3.2 → snakemake_executor_plugin_slurm-0.4.1}/pyproject.toml +1 -1
- {snakemake_executor_plugin_slurm-0.3.2 → snakemake_executor_plugin_slurm-0.4.1}/snakemake_executor_plugin_slurm/__init__.py +12 -3
- {snakemake_executor_plugin_slurm-0.3.2 → snakemake_executor_plugin_slurm-0.4.1}/LICENSE +0 -0
- {snakemake_executor_plugin_slurm-0.3.2 → snakemake_executor_plugin_slurm-0.4.1}/README.md +0 -0
|
@@ -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
|
-
|
|
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
|
-
|
|
111
|
-
|
|
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"):
|
|
File without changes
|
|
File without changes
|