Commit 9e2e7eb
Include module resources bundle in task hash for -resume caching
When a module uses local binaries via its `resources/` directory
(the `nextflow.enable.moduleBinaries` feature flag), those files were
not part of the task hash used for `-resume` caching. As a result,
editing a module's `resources` script did not invalidate the cache and
`-resume` returned a stale cached result instead of re-executing the
task.
Add the module resources bundle fingerprint to the task hash key list
in `TaskHasher.compute()`, guarded by `session.enableModuleBinaries()`
(matching the existing guard in `TaskProcessor.getBinDirs()`), so edits
to module binaries correctly force task re-execution while unchanged
resources still hit the cache.
Note: this does not affect Wave setups, where the resources are baked
into the container and already covered by the container fingerprint.
Fixes #6128
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Signed-off-by: Ben Sherman <bentshermann@gmail.com>1 parent 79594e7 commit 9e2e7eb
2 files changed
Lines changed: 48 additions & 0 deletions
File tree
- modules/nextflow/src
- main/groovy/nextflow/processor
- test/groovy/nextflow/processor
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
99 | 108 | | |
100 | 109 | | |
101 | 110 | | |
| |||
Lines changed: 39 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
| 23 | + | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
| |||
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
97 | 136 | | |
98 | 137 | | |
99 | 138 | | |
| |||
0 commit comments