Commit d2487a8
committed
Re-raise infrastructure errors during output collection
Surface ImportError, MemoryError, SystemError and infrastructure OSErrors
(e.g. disk full, I/O errors) during output collection instead of silently
downgrading them to warnings, so they fail the job rather than producing a
job that 'succeeds' with empty outputs.
Two exceptions are deliberately NOT treated as infrastructure failures and
keep flowing through the normal _allow_collect_failure handling:
* FileNotFoundError — a missing output file is expected and recoverable
(e.g. a from_work_dir output the tool legitimately did not produce, which
Galaxy represents as an empty dataset).
* HTTP 403 — Galaxy authoritatively refused the upload (dataset purged mid
job); checked before the OSError test because requests.HTTPError is itself
an OSError subclass.1 parent b2454a8 commit d2487a8
1 file changed
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
235 | 238 | | |
236 | 239 | | |
237 | 240 | | |
| |||
240 | 243 | | |
241 | 244 | | |
242 | 245 | | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
243 | 249 | | |
244 | 250 | | |
245 | 251 | | |
| |||
248 | 254 | | |
249 | 255 | | |
250 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
251 | 265 | | |
252 | 266 | | |
253 | 267 | | |
| |||
0 commit comments