Skip to content

Commit 9b48df4

Browse files
Remove task attempt from hash list and add note (#6123) [ci skip]
Signed-off-by: Christopher Hakkaart <chris.hakkaart@seqera.io>
1 parent a44b4ed commit 9b48df4

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

docs/cache-and-resume.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@ The task hash is computed from the following metadata:
3030
- Any task {ref}`process-ext` properties referenced in the task script
3131
- Any {ref}`bundled scripts <bundling-executables>` used in the task script
3232
- Whether the task is a {ref}`stub run <process-stub>`
33-
- Task attempt
33+
34+
:::note
35+
Nextflow also includes an incrementing component in the hash generation process, which allows it to iterate through multiple hash values until it finds one that does not match an existing execution directory. This mechanism typically usually aligns with task retries (i.e., task attempts), however this is not guaranteed.
36+
:::
3437

3538
:::{versionchanged} 23.09.2-edge
3639
The {ref}`process-ext` directive was added to the task hash.
3740
:::
3841

3942
Nextflow computes this hash for every task when it is created but before it is executed. If resumability is enabled and there is an entry in the task cache with the same hash, Nextflow tries to recover the previous task execution. A cache hit does not guarantee that the task will be resumed, because it must also recover the task outputs from the [work directory](#work-directory).
4043

41-
Note that files are hashed differently depending on the caching mode. See the {ref}`process-cache` directive for more details.
44+
Files are hashed differently depending on the caching mode. See the {ref}`process-cache` directive for more details.
4245

4346
### Task entry
4447

0 commit comments

Comments
 (0)