@@ -58,13 +58,23 @@ Output files produced by tool execution must be written to the **designated
58
58
output directory** . The initial current working directory when executing
59
59
the tool must be the designated output directory.
60
60
61
- Files may also be written to the ** designated temporary directory** . Any
62
- files written to the designated temporary directory may be deleted by the
63
- workflow platform immediately after the tool terminates.
61
+ Files may also be written to the ** designated temporary directory** . This
62
+ directory must be isolated and not shared with other processes. Any files
63
+ written to the designated temporary directory may be automatically deleted by
64
+ the workflow platform immediately after the tool terminates.
65
+
66
+ For compatibility, files may be written to the ** system temporary directory**
67
+ which must be located at ` /tmp ` . Because the system temporary directory may be
68
+ shared with other processes on the system, files placed in the system temporary
69
+ directory are not guaranteed to be deleted automatically. Correct tools must
70
+ clean up temporary files written to the system temporary directory. A tool
71
+ must not use the system temporary directory as a backchannel communication with
72
+ other tools. It is valid for the system temporary directory to be the same as
73
+ the designated temporary directory.
64
74
65
75
When executing the tool, the tool must execute in a new, empty environment
66
76
with only the environment variables described below; the child process must
67
- not inherit environment variables from the parent process except where
77
+ not inherit environment variables from the parent process except as
68
78
specified or at user option.
69
79
70
80
* ` HOME ` must be set to the designated output directory.
@@ -77,10 +87,10 @@ specified or at user option.
77
87
[ DockerRequirement] ( #DockerRequirement )
78
88
79
89
An implementation may forbid the tool from writing to any location in the
80
- runtime environment file system other than the designated temporary
81
- directory and designated output directory. An implementation may provide
82
- read-only input files, and disallow in-place update of input files. The
83
- designated temporary directory and designated output directory may reside
90
+ runtime environment file system other than the designated temporary directory,
91
+ system temporary directory, and designated output directory. An implementation
92
+ may provide read-only input files, and disallow in-place update of input files.
93
+ The designated temporary directory and designated output directory may reside
84
94
on different mount points on different file systems.
85
95
86
96
The ` runtime ` section available in [ parameter references] ( #Parameter_references )
0 commit comments