This repository was archived by the owner on May 29, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +12
-7
lines changed
snakemake_executor_plugin_slurm Expand file tree Collapse file tree 1 file changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -139,17 +139,18 @@ def run_job(self, job: JobExecutorInterface):
139
139
# generic part of a submission string:
140
140
# we use a run_uuid as the job-name, to allow `--name`-based
141
141
# filtering in the job status checks (`sacct --name` and `squeue --name`)
142
- if wildcard_str == "" :
143
- comment_str = f"rule_{ job .name } "
144
- else :
145
- comment_str = f"rule_{ job .name } _wildcards_{ wildcard_str } "
142
+
143
+ #if wildcard_str == "":
144
+ # comment_str = f"rule_{job.name}"
145
+ #else:
146
+ # comment_str = f"rule_{job.name}_wildcards_{wildcard_str}"
147
+ comment_str = os .getenv ('SMK_SLURM_COMMENT' ,'RnD' )
146
148
call = (
147
149
f"sbatch "
148
150
f"--parsable "
151
+ f"--comment '{ comment_str } ' "
149
152
f"--job-name { self .run_uuid } "
150
153
f"--output '{ slurm_logfile } ' "
151
- f"--export=ALL "
152
- f"--comment { comment_str } "
153
154
)
154
155
155
156
call += self .get_account_arg (job )
@@ -213,7 +214,11 @@ def run_job(self, job: JobExecutorInterface):
213
214
# (see https://github.com/snakemake/snakemake/issues/2014)
214
215
call += f" -D { self .workflow .workdir_init } "
215
216
# and finally the job to execute with all the snakemake parameters
216
- call += f' --wrap="{ exec_job } "'
217
+ call += f''' <<EOF
218
+ #!/bin/bash
219
+ { exec_job }
220
+ EOF
221
+ '''
217
222
218
223
self .logger .debug (f"sbatch call: { call } " )
219
224
try :
You can’t perform that action at this time.
0 commit comments