Skip to content

Commit

Permalink
Merge branch 'main' into feat/multicluster
Browse files Browse the repository at this point in the history
  • Loading branch information
cmeesters authored May 7, 2024
2 parents 1ff5cab + 50637cb commit f804c65
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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 <[email protected]>",
Expand Down
6 changes: 5 additions & 1 deletion snakemake_executor_plugin_slurm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f804c65

Please sign in to comment.