Bug 27782

Summary: If a BackgroundJob should fail, it should NOT bring down the worker!
Product: Koha Reporter: Martin Renvoize (ashimema) <martin.renvoize>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: RESOLVED DUPLICATE QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: dcook, jonathan.druart
Version: Main   
Hardware: All   
OS: All   
See Also: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27344
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27756
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 22417    
Bug Blocks:    

Description Martin Renvoize (ashimema) 2021-02-24 19:42:22 UTC
Our worker does not fork to run tasks, so if a task explodes, the worker it brought down with it... that is bad.
Comment 1 David Cook 2021-02-24 23:35:49 UTC
(In reply to Martin Renvoize from comment #0)
> Our worker does not fork to run tasks, so if a task explodes, the worker it
> brought down with it... that is bad.

Agreed.

It should be forking. Even if we wrapped the processing in an eval{}, we should still be forking from a memory efficiency perspective.
Comment 2 Jonathan Druart 2021-09-14 16:59:13 UTC

*** This bug has been marked as a duplicate of bug 27756 ***