snakemake-executor-plugin-sge 0.6.2__tar.gz → 0.6.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: snakemake-executor-plugin-sge
3
- Version: 0.6.2
3
+ Version: 0.6.3
4
4
  Summary: A Snakemake executor plugin for submitting jobs to SGE/UGE/OGS clusters.
5
5
  License: MIT
6
6
  Keywords: snakemake,plugin,executor,cluster,sge,uge,gridengine
@@ -1,6 +1,6 @@
1
1
  [tool.poetry]
2
2
  name = "snakemake-executor-plugin-sge"
3
- version = "0.6.2"
3
+ version = "0.6.3"
4
4
  description = "A Snakemake executor plugin for submitting jobs to SGE/UGE/OGS clusters."
5
5
  authors = ["Stylianos Charalampous <stylianosc@github.com>"]
6
6
  readme = "README.md"
@@ -300,13 +300,16 @@ def get_submit_command(
300
300
  f" -N {_safe(job_name)}"
301
301
  )
302
302
 
303
- # Stdout/stderr: pass the log *directory*; SGE appends .oJOBID.TASKID
304
- # Use -o dir/ -e dir/ (trailing slash = treat as directory on most SGE)
305
- call += f" -o {_safe(str(log_dir) + '/')}"
303
+ # Stdout/stderr: specify exact log file paths using SGE variable expansion
304
+ # $JOB_ID expands to the job ID, $TASK_ID expands to the array task index
305
+ # This produces logs named like "1234567.1.log" (jobid.taskid.log)
306
+ log_stdout_path = log_dir / "$JOB_ID.$TASK_ID.log"
307
+ call += f" -o {_safe(str(log_stdout_path))}"
306
308
  if join_logs:
307
309
  call += " -j y"
308
310
  else:
309
- call += f" -e {_safe(str(log_dir) + '/')}"
311
+ log_stderr_path = log_dir / "$JOB_ID.$TASK_ID.error"
312
+ call += f" -e {_safe(str(log_stderr_path))}"
310
313
 
311
314
  # ── working directory ──────────────────────────────────────────────
312
315
  if workdir: