[slurm-users] Reset TMPDIR for All Jobs
Ellestad, Erik
Erik.Ellestad at ucsf.edu
Tue May 12 15:40:09 UTC 2020
I was wanted to set TMPDIR from /tmp to a per job directory I create in local /scratch/$SLURM_JOB_ID (for example)
This bug suggests I should be able to do this in a task-prolog.
https://bugs.schedmd.com/show_bug.cgi?id=2664
However adding the following to task-prolog doesn't seem to affect the variables the job script is running with.
unset TMPDIR
export TMPDIR=/scratch/$SLURM_JOB_ID
It does work if it is done in the job script, rather than the task-prolog.
Am I missing something?
Erik
--
Erik Ellestad
Wynton Cluster SysAdmin
UCSF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.schedmd.com/pipermail/slurm-users/attachments/20200512/c00ada0b/attachment-0001.htm>
More information about the slurm-users
mailing list