Commit 0f3694e
committed
fix(matrix): honor timeout on module-type steps
Per-step `timeout` was silently ignored for steps using
`module: <name>` (e.g. `module: slurm`). The action branch
of `run_step` dispatches modules directly, bypassing
`run_step_shell` — the only path that reads `timeout` and
wraps execution in Jenkins' `timeout()`.
Apply the fix centrally so all module types (`slurm`,
`dynamicAction`, ...) honor `timeout` uniformly: the action
branch now reads the same `getConfigVal(..., ['timeout'], ...)`
value used by shell steps and wraps the module dispatch in
`timeout(time: X, unit: 'MINUTES')`.
`onfail`/`always` plumbing still does not exist for module
steps, so on timeout the `FlowInterruptedException`
propagates and aborts the stage. That can be added in a
follow-up if needed.
Signed-off-by: Daniel Pressler <danielpr@nvidia.com>1 parent dd4da82 commit 0f3694e
1 file changed
Lines changed: 9 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
615 | 615 | | |
616 | 616 | | |
617 | 617 | | |
618 | | - | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
619 | 627 | | |
620 | 628 | | |
621 | 629 | | |
| |||
0 commit comments