Skip to content

Commit

Permalink
Fix #42 envfile.properties unique per container
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinetran committed Dec 16, 2024
1 parent 813e44c commit 66432f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/slurm/prepare.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ func createEnvFile(Ctx context.Context, config SlurmConfig, podData commonIL.Ret
// For debugging purpose only
envs_data := []string{}

envfilePath := (config.DataRootFolder + podData.Pod.Namespace + "-" + string(podData.Pod.UID) + "/" + "envfile.properties")
envfilePath := (config.DataRootFolder + podData.Pod.Namespace + "-" + string(podData.Pod.UID) + "/" + container.Name + "_envfile.properties")
log.G(Ctx).Info("-- Appending envs using envfile " + envfilePath)
envs = append(envs, "--env-file")
envs = append(envs, envfilePath)
Expand Down

0 comments on commit 66432f9

Please sign in to comment.