Commit 8beeaad
committed
shell: do not set TMPDIR to FLUX_JOB_TMPDIR when unset
Problem: The job shell tmpdir plugin sets TMPDIR to FLUX_JOB_TMPDIR
when TMPDIR is not already set. However, this causes problems if
the current job submits more jobs, because TMPDIR now points to a
job specific directory. This can cause jobs to fail when they are
executed on different nodes (where the job tmpdir does not exist).
If the job runs locally, then it shares TMPDIR with another job which
is probably not the original intent of the feature.
For these reasons, avoid setting TMPDIR to FLUX_JOB_TMPDIR. Just
leave TMPDIR unset if the user submitted the job that way.
Fixes #43291 parent fd98713 commit 8beeaad
1 file changed
+1
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | | - | |
103 | 102 | | |
104 | | - | |
105 | | - | |
| 103 | + | |
106 | 104 | | |
107 | 105 | | |
108 | 106 | | |
| |||
0 commit comments