snakemake-executor-plugin-slurm 0.1.5__tar.gz → 0.2.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.1
2
2
  Name: snakemake-executor-plugin-slurm
3
- Version: 0.1.5
3
+ Version: 0.2.0
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
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snakemake-executor-plugin-slurm"
3
- version = "0.1.5"
3
+ version = "0.2.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>",
@@ -68,8 +68,6 @@ class Executor(RemoteExecutor):
68
68
  # with job_info being of type
69
69
  # snakemake_interface_executor_plugins.executors.base.SubmittedJobInfo.
70
70
 
71
- jobid = job.jobid
72
-
73
71
  log_folder = f"group_{job.name}" if job.is_group() else f"rule_{job.name}"
74
72
 
75
73
  slurm_logfile = os.path.abspath(f".snakemake/slurm_logs/{log_folder}/%j.log")
@@ -78,7 +76,10 @@ class Executor(RemoteExecutor):
78
76
  # generic part of a submission string:
79
77
  # we use a run_uuid as the job-name, to allow `--name`-based
80
78
  # filtering in the job status checks (`sacct --name` and `squeue --name`)
81
- call = f"sbatch --job-name {self.run_uuid} -o {slurm_logfile} --export=ALL"
79
+ call = (
80
+ f"sbatch --job-name {self.run_uuid} --output {slurm_logfile} --export=ALL "
81
+ f"--comment {job.name}"
82
+ )
82
83
 
83
84
  call += self.get_account_arg(job)
84
85
  call += self.get_partition_arg(job)
@@ -149,7 +150,7 @@ class Executor(RemoteExecutor):
149
150
  slurm_jobid = out.split(" ")[-1]
150
151
  slurm_logfile = slurm_logfile.replace("%j", slurm_jobid)
151
152
  self.logger.info(
152
- f"Job {jobid} has been submitted with SLURM jobid {slurm_jobid} "
153
+ f"Job {job.jobid} has been submitted with SLURM jobid {slurm_jobid} "
153
154
  f"(log: {slurm_logfile})."
154
155
  )
155
156
  self.report_job_submission(