Is there’s any way to set this only for the Job Composer(myjob) itself( like a config file in /etc/ood/config/app/myjobs/)? Not from the Job script template? Since it sounds better to hide this from regular users.
The documentation of OOD says you can change OOD-MAX-SCRIPT-SIZE_KB in /etc/ood/config/app/myjobs/env, but in my installation, there is no such file. I added this file there, and added the SLURM_EXPORT_ENV, but it seems the OOD at least ignores the SLURM_EXPORT_ENV.
Add SLURM_EXPORT_ENV to Job script template does the work, but it seems not a perfect solution?
Hnnn, I checked the myjobs/cinfig/configuration_singleton.rb, it seems it reads the “.env” file setting, not “env”. Made the change and it seems it works.
This is why we use NONE. It doesn’t clear the env, we’re submitting the job from an environment that doesn’t have the module system, so you can see why there’s a weird PATH.
I added a “.env” file to myjobs folder with the SLURM_EXPORT_ENV=ALL, and it seems it works… Need to do some more tests to see if it really fix it and won’t cause any issue.