We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5250260 commit 69d4351Copy full SHA for 69d4351
snakemake_executor_plugin_slurm/job_status_query.py
@@ -143,8 +143,11 @@ def query_job_status_squeue(runid) -> list:
143
Dictionary mapping job ID to JobStatus object
144
"""
145
# Build squeue command
146
+ # Note: The format string contains a pipe '|' which must be quoted to
147
+ # prevent shell interpretation when passing to subprocess with shell=True
148
+ format_arg = shlex.quote("%i|%T")
149
query_command = f"""squeue
- --format=%i|%T
150
+ --format={format_arg}
151
--states=all
152
--noheader
153
--name {runid}"""
0 commit comments