Bug 30889: (follow-up) Record and use context in background_jobs
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Fri, 10 Jun 2022 13:09:21 +0000 (14:09 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Thu, 30 Jun 2022 15:03:18 +0000 (12:03 -0300)
commitbde3a32277efdfe8bcf47ffe444b1a9780125940
treeee793928dac892ceab6fc16408ef3f7d5cc01330
parent72a6c8ba84e90928c03ad7ee48f66e0c12750214
Bug 30889: (follow-up) Record and use context in background_jobs

This patch records the current context to the background_jobs table at
enqueue time and then uses that record to set the context at process
time.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Koha/BackgroundJob.pm
misc/background_jobs_worker.pl