Commit 0368197
fix: sbatch stderr parsing (#161)
will hopefully fix #157
The issue is, that submission joined `stderr` and `stdout` of the
`sbatch` call. Without add-ons `sbatch` only emits to `stdout` and to
`stderr` only in the case of an error. However, admins can add
informative messages to `stderr`, when this occurs, parsing the message
for the JobID failed. Now, `stderr` and `stdout` are considered
separately.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
- **New Features**
- Enhanced error handling during SLURM job submission, providing clearer
feedback on failures.
- Improved job ID retrieval by stripping whitespace from the output.
- **Bug Fixes**
- Addressed issues with job submission failures by capturing both
standard output and error messages.
- **Chores**
- Minor adjustments to logging for better clarity during job submission
and error reporting.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Filipe G. Vieira <1151762+fgvieira@users.noreply.github.com>
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>1 parent d98e4ac commit 0368197
1 file changed
+19
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
223 | 232 | | |
224 | 233 | | |
225 | 234 | | |
226 | 235 | | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
227 | 240 | | |
228 | 241 | | |
229 | 242 | | |
230 | 243 | | |
231 | 244 | | |
232 | 245 | | |
233 | | - | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
234 | 249 | | |
235 | 250 | | |
236 | 251 | | |
| |||
0 commit comments