Skip to content

Commit

Permalink
Improve naming scheme of batch scripts when generated from scratch
Browse files Browse the repository at this point in the history
Signed-off-by: Geoffroy Vallee <[email protected]>
  • Loading branch information
gvallee committed Jun 5, 2021
1 parent 2064b51 commit a7e337d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/jm/jm.go
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,11 @@ func getBatchScriptPath(j *job.Job, sysCfg *sys.Config, batchScriptFilenamePrefi

// TempFile creates a temporary file that is used to store a batch script
func TempFile(j *job.Job, sysCfg *sys.Config) error {
filePrefix := "sbatch-" + j.Name
filePrefix := "sbatch-"
if j.Partition != "" {
filePrefix += j.Partition + "-"
}
filePrefix += j.Name
var err error
j.BatchScript, err = getBatchScriptPath(j, sysCfg, filePrefix)
if err != nil {
Expand Down

0 comments on commit a7e337d

Please sign in to comment.