diff --git a/snakemake_executor_plugin_slurm/__init__.py b/snakemake_executor_plugin_slurm/__init__.py index cc0255e..69e54dd 100644 --- a/snakemake_executor_plugin_slurm/__init__.py +++ b/snakemake_executor_plugin_slurm/__init__.py @@ -89,9 +89,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)