snakemake-executor-plugin-slurm 0.5.0__py3-none-any.whl → 0.5.1__py3-none-any.whl
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/__init__.py +8 -4
- {snakemake_executor_plugin_slurm-0.5.0.dist-info → snakemake_executor_plugin_slurm-0.5.1.dist-info}/METADATA +1 -1
- snakemake_executor_plugin_slurm-0.5.1.dist-info/RECORD +5 -0
- snakemake_executor_plugin_slurm-0.5.0.dist-info/RECORD +0 -5
- {snakemake_executor_plugin_slurm-0.5.0.dist-info → snakemake_executor_plugin_slurm-0.5.1.dist-info}/LICENSE +0 -0
- {snakemake_executor_plugin_slurm-0.5.0.dist-info → snakemake_executor_plugin_slurm-0.5.1.dist-info}/WHEEL +0 -0
|
@@ -214,7 +214,7 @@ class Executor(RemoteExecutor):
|
|
|
214
214
|
|
|
215
215
|
# We use this sacct syntax for argument 'starttime' to keep it compatible
|
|
216
216
|
# with slurm < 20.11
|
|
217
|
-
sacct_starttime = f"{datetime.now() - timedelta(days=2):%Y-%m-%dT%H:00}"
|
|
217
|
+
sacct_starttime = f"{datetime.now() - timedelta(days = 2):%Y-%m-%dT%H:00}"
|
|
218
218
|
# previously we had
|
|
219
219
|
# f"--starttime now-2days --endtime now --name {self.run_uuid}"
|
|
220
220
|
# in line 218 - once v20.11 is definitively not in use any more,
|
|
@@ -293,7 +293,9 @@ class Executor(RemoteExecutor):
|
|
|
293
293
|
elif status in fail_stati:
|
|
294
294
|
msg = (
|
|
295
295
|
f"SLURM-job '{j.external_jobid}' failed, SLURM status is: "
|
|
296
|
-
|
|
296
|
+
# message ends with '. ', because it is proceeded
|
|
297
|
+
# with a new sentence
|
|
298
|
+
f"'{status}'. "
|
|
297
299
|
)
|
|
298
300
|
self.report_job_error(j, msg=msg, aux_logs=[j.aux["slurm_logfile"]])
|
|
299
301
|
active_jobs_seen_by_sacct.remove(j.external_jobid)
|
|
@@ -373,7 +375,7 @@ class Executor(RemoteExecutor):
|
|
|
373
375
|
# here, we check whether the given or guessed account is valid
|
|
374
376
|
# if not, a WorkflowError is raised
|
|
375
377
|
self.test_account(job.resources.slurm_account)
|
|
376
|
-
return f" -A {job.resources.slurm_account}"
|
|
378
|
+
return f" -A '{job.resources.slurm_account}'"
|
|
377
379
|
else:
|
|
378
380
|
if self._fallback_account_arg is None:
|
|
379
381
|
self.logger.warning("No SLURM account given, trying to guess.")
|
|
@@ -440,7 +442,9 @@ class Executor(RemoteExecutor):
|
|
|
440
442
|
f"'{account}' with sacctmgr: {e.stderr}"
|
|
441
443
|
)
|
|
442
444
|
|
|
443
|
-
|
|
445
|
+
# The set() has been introduced during review to eliminate
|
|
446
|
+
# duplicates. They are not harmful, but disturbing to read.
|
|
447
|
+
accounts = set(_.strip() for _ in accounts.split("\n") if _)
|
|
444
448
|
|
|
445
449
|
if account not in accounts:
|
|
446
450
|
raise WorkflowError(
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
snakemake_executor_plugin_slurm/__init__.py,sha256=Ws-zsZP80iCC6q78M0mHea0fQhD0FtktpmfbxkC-4AQ,20551
|
|
2
|
+
snakemake_executor_plugin_slurm-0.5.1.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
|
|
3
|
+
snakemake_executor_plugin_slurm-0.5.1.dist-info/METADATA,sha256=lkfe53yQkU9ZFupesBM4k8LG-lnx-U7pK5X8dl0E5XQ,1380
|
|
4
|
+
snakemake_executor_plugin_slurm-0.5.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
+
snakemake_executor_plugin_slurm-0.5.1.dist-info/RECORD,,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
snakemake_executor_plugin_slurm/__init__.py,sha256=kGOrUDIxMl-m5lv9KefL6p_jKFyIBtAYKhw2NpUZK3w,20257
|
|
2
|
-
snakemake_executor_plugin_slurm-0.5.0.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
|
|
3
|
-
snakemake_executor_plugin_slurm-0.5.0.dist-info/METADATA,sha256=EEEgSLGjYLFLZv3yYBZRZ6Tsg4N4ZJYipDl1UTCV230,1380
|
|
4
|
-
snakemake_executor_plugin_slurm-0.5.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
|
|
5
|
-
snakemake_executor_plugin_slurm-0.5.0.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|