Skip to content

Commit

Permalink
Fixes #27: regression fix of envfile.properties parent folder created
Browse files Browse the repository at this point in the history
before
  • Loading branch information
trana authored and trana committed Oct 14, 2024
1 parent 9ab0b5b commit 8b08a65
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/slurm/Create.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ func (h *SidecarHandler) SubmitHandler(w http.ResponseWriter, r *http.Request) {

commstr1 := []string{"singularity", "exec", "--containall", "--nv", singularityMounts, singularityOptions}

envs := prepareEnvs(spanCtx, h.Config, data, container)
image := ""

CPULimit, _ := container.Resources.Limits.Cpu().AsInt64()
Expand All @@ -107,6 +106,9 @@ func (h *SidecarHandler) SubmitHandler(w http.ResponseWriter, r *http.Request) {
os.RemoveAll(filesPath)
return
}

// prepareEnvs creates a file in the working directory, that must exist. This is created at prepareMounts.
envs := prepareEnvs(spanCtx, h.Config, data, container)

image = container.Image
if image_uri, ok := metadata.Annotations["slurm-job.vk.io/image-root"]; ok {
Expand Down

0 comments on commit 8b08a65

Please sign in to comment.