snakemake-executor-plugin-slurm 0.14.2__tar.gz → 0.15.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: 0.14.2
3
+ Version: 0.15.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 = "0.14.2"
3
+ version = "0.15.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>",
@@ -122,7 +122,11 @@ class Executor(RemoteExecutor):
122
122
  self._fallback_account_arg = None
123
123
  self._fallback_partition = None
124
124
  self._preemption_warning = False # no preemption warning has been issued
125
- self.slurm_logdir = None
125
+ self.slurm_logdir = (
126
+ Path(self.workflow.executor_settings.logdir)
127
+ if self.workflow.executor_settings.logdir
128
+ else Path(".snakemake/slurm_logs").resolve()
129
+ )
126
130
  atexit.register(self.clean_old_logs)
127
131
 
128
132
  def clean_old_logs(self) -> None:
@@ -180,12 +184,6 @@ class Executor(RemoteExecutor):
180
184
  except AttributeError:
181
185
  wildcard_str = ""
182
186
 
183
- self.slurm_logdir = (
184
- Path(self.workflow.executor_settings.logdir)
185
- if self.workflow.executor_settings.logdir
186
- else Path(".snakemake/slurm_logs").resolve()
187
- )
188
-
189
187
  self.slurm_logdir.mkdir(parents=True, exist_ok=True)
190
188
  slurm_logfile = self.slurm_logdir / group_or_rule / wildcard_str / "%j.log"
191
189
  slurm_logfile.parent.mkdir(parents=True, exist_ok=True)