[slurm-users] Reset TMPDIR for All Jobs
greg.wickham at kaust.edu.sa
Tue May 19 06:59:16 UTC 2020
We use a private fork of https://github.com/hpc2n/spank-private-tmp
It has worked quite well for us - jobs (or steps) don’t share a /tmp and during the prolog all files created for the job/step are deleted.
Users absolutely cannot see each others temporary files so there’s no issue even if they happen to have a hard corded path ie: /tmp/myfiles.txt
On 12 May 2020, at 18:40, Ellestad, Erik <Erik.Ellestad at ucsf.edu<mailto:Erik.Ellestad at ucsf.edu>> wrote:
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.
However adding the following to task-prolog doesn’t seem to affect the variables the job script is running with.
It does work if it is done in the job script, rather than the task-prolog.
Am I missing something?
Wynton Cluster SysAdmin
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the slurm-users