snakemake-executor-plugin-slurm 0.10.0__py3-none-any.whl → 0.10.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.

@@ -137,7 +137,7 @@ class Executor(RemoteExecutor):
137
137
  f"sbatch "
138
138
  f"--parsable "
139
139
  f"--job-name {self.run_uuid} "
140
- f"--output {slurm_logfile} "
140
+ f"--output '{slurm_logfile}' "
141
141
  f"--export=ALL "
142
142
  f"--comment {comment_str}"
143
143
  )
@@ -408,6 +408,14 @@ We leave it to SLURM to resume your job(s)"""
408
408
  )
409
409
  except subprocess.TimeoutExpired:
410
410
  self.logger.warning("Unable to cancel jobs within a minute.")
411
+ except subprocess.CalledProcessError as e:
412
+ msg = e.stderr.strip()
413
+ if msg:
414
+ msg = f": {msg}"
415
+ raise WorkflowError(
416
+ "Unable to cancel jobs with scancel "
417
+ f"(exit code {e.returncode}){msg}"
418
+ ) from e
411
419
 
412
420
  async def job_stati(self, command):
413
421
  """Obtain SLURM job status of all submitted jobs with sacct
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 0.10.0
3
+ Version: 0.10.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
@@ -0,0 +1,6 @@
1
+ snakemake_executor_plugin_slurm/__init__.py,sha256=GaX4hpsnNtX6pM6lRncupCGv_9q_rKEmdgHWo9nB6dw,24561
2
+ snakemake_executor_plugin_slurm/utils.py,sha256=DuJdFJsAmvFsrnpyb8kMoqxTEEmTsEVxroDS1t9qOGw,434
3
+ snakemake_executor_plugin_slurm-0.10.1.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
4
+ snakemake_executor_plugin_slurm-0.10.1.dist-info/METADATA,sha256=sFVmrUiTiqZLAjD5jKElcIuipus1rlz5bd4pLIiF1jI,1381
5
+ snakemake_executor_plugin_slurm-0.10.1.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
+ snakemake_executor_plugin_slurm-0.10.1.dist-info/RECORD,,
@@ -1,6 +0,0 @@
1
- snakemake_executor_plugin_slurm/__init__.py,sha256=VMIZpkp-R61GKq2jXoLxElxfSguHwgCsv0zv8-usHQY,24229
2
- snakemake_executor_plugin_slurm/utils.py,sha256=DuJdFJsAmvFsrnpyb8kMoqxTEEmTsEVxroDS1t9qOGw,434
3
- snakemake_executor_plugin_slurm-0.10.0.dist-info/LICENSE,sha256=YVc4xTLWMqGfFL36120k7rzXtsT6e4RkJsh68VVn12s,1076
4
- snakemake_executor_plugin_slurm-0.10.0.dist-info/METADATA,sha256=_88ZsjTcrcyn0m2OY1LryvmW_oJY0fzWQMeBNI8lnjk,1381
5
- snakemake_executor_plugin_slurm-0.10.0.dist-info/WHEEL,sha256=sP946D7jFCHeNz5Iq4fL4Lu-PrWrFsgfLXbbkciIZwg,88
6
- snakemake_executor_plugin_slurm-0.10.0.dist-info/RECORD,,