Commit f576652
committed
fix(run): validate job options before generating job script
__generate_job_script() was called before __validate_job_options(),
so an invalid invocation (e.g. --no-mpi with >1 rank, nodes <= 0, or
a malformed --email) would write a stale .sh to disk and only then
fail. Swap the call order so validation runs first.
Fixes part (b) of #1511.1 parent 4a73bf3 commit f576652
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
196 | 196 | | |
197 | 197 | | |
198 | 198 | | |
199 | | - | |
200 | 199 | | |
| 200 | + | |
201 | 201 | | |
202 | 202 | | |
203 | 203 | | |
| |||
0 commit comments