snakemake-executor-plugin-slurm 0.14.3__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.
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/PKG-INFO +1 -1
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/pyproject.toml +1 -1
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/snakemake_executor_plugin_slurm/__init__.py +5 -7
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/LICENSE +0 -0
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/README.md +0 -0
- {snakemake_executor_plugin_slurm-0.14.3 → snakemake_executor_plugin_slurm-0.15.0}/snakemake_executor_plugin_slurm/utils.py +0 -0
|
@@ -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 =
|
|
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)
|
|
File without changes
|
|
File without changes
|