Skip to content

Commit d309cb0

Browse files
ewelsbentshermanchristopher-hakkaart
authored
Improve docs for scratch directive (#6356)
See discussion: https://community.seqera.io/t/nextflow-process-directive-scratch-cleans-but-does-not-remove-scratch-dir/2337 --------- Signed-off-by: Phil Ewels <[email protected]> Signed-off-by: Ben Sherman <[email protected]> Co-authored-by: Ben Sherman <[email protected]> Co-authored-by: Chris Hakkaart <[email protected]>
1 parent 83160d6 commit d309cb0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/reference/process.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,8 @@ process hello {
14461446

14471447
By doing this, it tries to execute the script in the directory defined by the variable `$TMPDIR` in the execution node. If this variable does not exist, it will create a new temporary directory by using the Linux command `mktemp`.
14481448

1449+
Nextflow creates a subdirectory within the scratch directory for each task and automatically deletes it once the task completes.
1450+
14491451
:::{note}
14501452
Cloud-based executors use `scratch = true` by default, since the work directory resides in object storage.
14511453
:::

0 commit comments

Comments
 (0)