Commit 24d7745d authored by Jens Korinth's avatar Jens Korinth
Browse files

Improve SLURM job names

* SLURM job names now consist of the DSE name and the job number
* improved template: strings are quoted
parent 835565e7
#!/bin/bash #!/bin/bash
#SBATCH -J @@JOB_NAME@@ #SBATCH -J "@@JOB_NAME@@"
#SBATCH -o @@SLURM_LOG@@ #SBATCH -o "@@SLURM_LOG@@"
#SBATCH -e @@ERROR_LOG@@ #SBATCH -e "@@ERROR_LOG@@"
#SBATCH --mem-per-cpu=@@MEM_PER_CPU@@ #SBATCH --mem-per-cpu=@@MEM_PER_CPU@@
#SBATCH -n @@CPUS@@ #SBATCH -n @@CPUS@@
#SBATCH -t @@TIMELIMIT@@ #SBATCH -t @@TIMELIMIT@@
......
...@@ -85,7 +85,7 @@ class ComposeTask(composition: Composition, ...@@ -85,7 +85,7 @@ class ComposeTask(composition: Composition,
) )
// define SLURM job // define SLURM job
val job = Slurm.Job( val job = Slurm.Job(
name = elementdesc, name = l.getParent.getParent.getFileName.resolve(l.getParent.getFileName).toString,
slurmLog = slgFile.toString, slurmLog = slgFile.toString,
errorLog = _errorLogFile.toString, errorLog = _errorLogFile.toString,
consumer = this, consumer = this,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment