-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't export the user's environment to the job #159
base: master
Are you sure you want to change the base?
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.