snakemake-executor-plugin-slurm 0.10.2__tar.gz → 0.11.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.10.2
3
+ Version: 0.11.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
@@ -12,6 +12,7 @@ Classifier: License :: OSI Approved :: MIT License
12
12
  Classifier: Programming Language :: Python :: 3
13
13
  Classifier: Programming Language :: Python :: 3.11
14
14
  Classifier: Programming Language :: Python :: 3.12
15
+ Classifier: Programming Language :: Python :: 3.13
15
16
  Requires-Dist: snakemake-executor-plugin-slurm-jobstep (>=0.2.0,<0.3.0)
16
17
  Requires-Dist: snakemake-interface-common (>=1.13.0,<2.0.0)
17
18
  Requires-Dist: snakemake-interface-executor-plugins (>=9.1.1,<10.0.0)
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snakemake-executor-plugin-slurm"
3
- version = "0.10.2"
3
+ version = "0.11.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>",
@@ -42,6 +42,18 @@ class ExecutorSettings(ExecutorSettingsBase):
42
42
  "required": False,
43
43
  },
44
44
  )
45
+ requeue: bool = field(
46
+ default=False,
47
+ metadata={
48
+ "help": """
49
+ Allow requeuing preempted of failed jobs,
50
+ if no cluster default. Results in `sbatch ... --requeue ...`
51
+ This flag has no effect, if not set.
52
+ """,
53
+ "env_var": False,
54
+ "required": False,
55
+ },
56
+ )
45
57
 
46
58
 
47
59
  # Required:
@@ -79,8 +91,6 @@ class Executor(RemoteExecutor):
79
91
  self._fallback_account_arg = None
80
92
  self._fallback_partition = None
81
93
  self._preemption_warning = False # no preemption warning has been issued
82
- # providing a short-hand, even if subsequent calls seem redundant
83
- self.settings: ExecutorSettings = self.workflow.executor_settings
84
94
 
85
95
  def warn_on_jobcontext(self, done=None):
86
96
  if not done:
@@ -145,6 +155,9 @@ class Executor(RemoteExecutor):
145
155
  call += self.get_account_arg(job)
146
156
  call += self.get_partition_arg(job)
147
157
 
158
+ if self.workflow.executor_settings.requeue:
159
+ call += " --requeue"
160
+
148
161
  if job.resources.get("clusters"):
149
162
  call += f" --clusters {job.resources.clusters}"
150
163