snakemake-executor-plugin-slurm 1.3.5__tar.gz → 1.4.0__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.3
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 1.3.5
3
+ Version: 1.4.0
4
4
  Summary: A Snakemake executor plugin for submitting jobs to a SLURM cluster.
5
5
  License: MIT
6
6
  Keywords: snakemake,plugin,executor,cluster,slurm
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snakemake-executor-plugin-slurm"
3
- version = "1.3.5"
3
+ version = "1.4.0"
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>",
@@ -106,6 +106,14 @@ class ExecutorSettings(ExecutorSettingsBase):
106
106
  "required": False,
107
107
  },
108
108
  )
109
+ reservation: Optional[str] = field(
110
+ default=None,
111
+ metadata={
112
+ "help": "If set, the given reservation will be used for job submission.",
113
+ "env_var": False,
114
+ "required": False,
115
+ },
116
+ )
109
117
 
110
118
 
111
119
  # Required:
@@ -245,6 +253,9 @@ class Executor(RemoteExecutor):
245
253
  if self.workflow.executor_settings.requeue:
246
254
  call += " --requeue"
247
255
 
256
+ if self.workflow.executor_settings.reservation:
257
+ call += f" --reservation={self.workflow.executor_settings.reservation}"
258
+
248
259
  call += set_gres_string(job)
249
260
 
250
261
  if not job.resources.get("runtime"):