[Koha-bugs] [Bug 30889] Background jobs lead to wrong/missing info in logs

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jun 10 15:03:30 CEST 2022


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

--- Comment #12 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to Martin Renvoize from comment #11)
> The more I contemplate this the more I think we should add a 'context' field
> (probably replacing the 'borrowernumber' field) to the background_jobs table
> and populate it with a serialised context from the enqueue method and then
> use that context to set a context for the job to run in.

I support this option. Context needs to be set on enqueing the job. The caller
knows the context. The background job class should be able to set userenv
correctly when starting the job.

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


More information about the Koha-bugs mailing list