Don't export the user's environment to the job#159
Don't export the user's environment to the job#159bartvm wants to merge 2 commits intoSMART-Lab:masterfrom bartvm:master
Conversation
|
@mgermain Test away. |
|
@mgermain Ping. |
|
@bartvm working on one cluster, not working on the other. Haven't had the time to investigate why yet. |
|
Do you get an error? Or does it just not restart? |
|
Without the -V on Mammouth some part of the environment is not loaded. |
|
That's the entire point of the flag, no? But smart-dispatch shouldn't rely on the environment as set outside of the job. What environment variable does it try to access? |
|
No, the point of the flag is to not copy the current environment. It does not try to access anything, I just saw that some modules are missing when -V is used. I have to investigate why. |
|
That sounds weird... |
Fixes #157.
Currently the user's entire environment is exported. This is bad
practice because it makes jobs hard to reproduce and debug, and in some
cases it can even cause errors. The only variable that needs to be
exported is
PBS_FILENAME, which is used by the auto-resume script.