From 66432f992692a05e6ba3fb7ad0ca59efa0f1a62e Mon Sep 17 00:00:00 2001 From: antoinetran Date: Mon, 16 Dec 2024 18:27:10 +0100 Subject: [PATCH] Fix #42 envfile.properties unique per container --- pkg/slurm/prepare.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/slurm/prepare.go b/pkg/slurm/prepare.go index cb34311..6f9208c 100644 --- a/pkg/slurm/prepare.go +++ b/pkg/slurm/prepare.go @@ -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)