Commit f7d877a
Add WorkflowInterceptor extension point for named workflow interception
Introduce a pf4j ExtensionPoint that allows plugins to intercept
named workflow execution. This enables stage-level archiving and
resume capabilities without modifying workflow scripts.
- Add WorkflowInterceptor interface in nf-commons (ExtensionPoint)
- Extract WorkflowDef.runDefault() from run() (pure refactoring)
- Add interceptor lookup via Plugins.getExtension() in run()
- Entry workflows (name is null) are never intercepted
Signed-off-by: Zhibo Huang <huangzhibo@gmail.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: huangzhibo <zhibo90@126.com>1 parent cb7133d commit f7d877a
2 files changed
Lines changed: 45 additions & 0 deletions
File tree
- modules
- nextflow/src/main/groovy/nextflow/script
- nf-commons/src/main/nextflow/plugin
Lines changed: 13 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
181 | 183 | | |
182 | 184 | | |
183 | 185 | | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
184 | 197 | | |
185 | 198 | | |
186 | 199 | | |
| |||
Lines changed: 32 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
0 commit comments