[Koha-bugs] [Bug 32393] background job worker explodes if JSON is incorrect

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jan 9 00:42:05 CET 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=32393

--- Comment #15 from David Cook <dcook at prosentient.com.au> ---
We need to keep the fork, and catching all exceptions makes sense to me. You
could say that the background job worker is really a background job server and
servers really shouldn't go down. They should be reporting on the failures. 

Of course the tough part here is that the job ID is in the JSON, so if the JSON
can't be decoded, there is no way to fail the job and it just stays stuck in
"new" forever. 

I haven't been following the bad JSON bugs carefully enough though. Since we
control both ends, we shouldn't be creating and transmitting bad JSON...

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list