Commit 944977e
authored
Fix IllegalArgumentException when process.resourceLabels is a closure (#7068)
In the nf-seqera executor, computeRunResourceLabels read the raw
process.resourceLabels value from the session config. When the directive
is defined dynamically (as a closure), the value was passed to
Labels.toStringMap which rejected it as a non-Map, aborting execution.
Closure-based resourceLabels typically reference task-scoped bindings
(task.process, task.hash, ...) and cannot be meaningfully evaluated at
the run level. Skip them at run level with a debug log; per-task
resolution via TaskConfig.getResourceLabels continues to resolve the
closure with the task binding as before.
Signed-off-by: Paolo Di Tommaso <paolo@seqera.io>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>1 parent 29370f4 commit 944977e
2 files changed
Lines changed: 24 additions & 1 deletion
File tree
- plugins/nf-seqera/src
- main/io/seqera/executor
- test/io/seqera/executor
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
217 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
218 | 224 | | |
219 | 225 | | |
220 | 226 | | |
| |||
Lines changed: 17 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
175 | 175 | | |
176 | 176 | | |
177 | 177 | | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
178 | 195 | | |
179 | 196 | | |
180 | 197 | | |
| |||
0 commit comments