Closed nickjer closed 7 years ago
This is because the slurm adapter is reporting something other than PBS::UnkjobidError
see:
https://github.com/OSC/ood-activejobs/blob/ood_core/app/controllers/pages_controller.rb#L54-L57
I'll have to update this rescue to look for whatever error OodCore throws when a job is unknown.
You won't ever get PBS
errors if you are using ood_core
. All errors will be OodCore::JobAdapterError
now.
Also, I am not sure how I feel about rescuing every possible exception raised here:
rescue => e
{ name: pbsid, error: "No job details available." + e.backtrace.to_s}
Sometimes raising a 5xx is fine. Especially if it is something unrelated to a OodCore::JobAdapterError
.
Ideally the user will never see this block of code. This is here for us to debug unexpected behavior, like when the underlying API changes.
How to reproduce:
You get this...