Commit dff4482
committed
Update slurm batch script: handle signals and more options
- By using `srun` for cmd, slurm will properly signal shutdown with
SIGTERM in advance. Closes: #50
- Add prologue and epilogue options in case other setup is needed
before or after the script runs (e.g. `unset XDG_RUNTIME_DIR`).
- Some other script nicesess.
- This will eventually need porting to the other spawners, but will
require some local knowledge. Slurm first, then others.1 parent 6bcb70b commit dff4482
1 file changed
+13
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
146 | 154 | | |
147 | 155 | | |
148 | 156 | | |
| |||
500 | 508 | | |
501 | 509 | | |
502 | 510 | | |
| 511 | + | |
| 512 | + | |
503 | 513 | | |
504 | | - | |
| 514 | + | |
| 515 | + | |
| 516 | + | |
505 | 517 | | |
506 | 518 | | |
507 | 519 | | |
| |||
0 commit comments