diff --git a/CHANGELOG.md b/CHANGELOG.md index 5862352..fdac2eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,12 @@ # Changelog +## [0.5.0](https://github.com/snakemake/snakemake-executor-plugin-slurm/compare/v0.4.5...v0.5.0) (2024-05-06) + + +### Features + +* wildcards in comment string [#85](https://github.com/snakemake/snakemake-executor-plugin-slurm/issues/85) ([#88](https://github.com/snakemake/snakemake-executor-plugin-slurm/issues/88)) ([730cac0](https://github.com/snakemake/snakemake-executor-plugin-slurm/commit/730cac09c12a7038557ee937bc58c8c9e483c8f3)) + ## [0.4.5](https://github.com/snakemake/snakemake-executor-plugin-slurm/compare/v0.4.4...v0.4.5) (2024-04-17) diff --git a/pyproject.toml b/pyproject.toml index a6f8e82..53cfcce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "snakemake-executor-plugin-slurm" -version = "0.4.5" +version = "0.5.0" description = "A Snakemake executor plugin for submitting jobs to a SLURM cluster." authors = [ "Christian Meesters ", diff --git a/snakemake_executor_plugin_slurm/__init__.py b/snakemake_executor_plugin_slurm/__init__.py index c5061c8..35d9cb6 100644 --- a/snakemake_executor_plugin_slurm/__init__.py +++ b/snakemake_executor_plugin_slurm/__init__.py @@ -91,9 +91,13 @@ def run_job(self, job: JobExecutorInterface): # generic part of a submission string: # we use a run_uuid as the job-name, to allow `--name`-based # filtering in the job status checks (`sacct --name` and `squeue --name`) + if wildcard_str == "": + comment_str = f"rule_{job.name}" + else: + comment_str = f"rule_{job.name}_wildcards_{wildcard_str}" call = ( f"sbatch --job-name {self.run_uuid} --output {slurm_logfile} --export=ALL " - f"--comment {job.name}" + f"--comment {comment_str}" ) call += self.get_account_arg(job)