We recently had to fix this for our Slurm cluster too at OSC
You can see here how we did it. We just set export SLURM_EXPORT_ENV=ALL in the batch_connect.before_script portion of our submit yml.
We recently had to fix this for our Slurm cluster too at OSC
You can see here how we did it. We just set export SLURM_EXPORT_ENV=ALL in the batch_connect.before_script portion of our submit yml.