[Koha-bugs] [Bug 27344] Implement Elastic's update_index_background using Koha::BackgroundJob

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Feb 9 14:03:19 CET 2021


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

--- Comment #10 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(In reply to Martin Renvoize from comment #8)
> Thinking about this more.. I think we need to teach our worked daemon to
> accept a list of jobs it can work on.. that way we can utilise the
> background jobs processing whilst also allowing different workers to
> concentrate on different jobs.  For this case, I think having a dedicated
> indexing worker would be the best option.
> 
> I can work on that in another bug to not block this one.

Yes, that's definitely something I had in mind when I wrote bug 22417,
configuration for the different jobs. But I think by default it must be kept as
simple as possible. Sysops who wants more sophisticate solutions will implement
it (like if we need to modify the RabbitMQ config).

Having an optional parameter to pass a list of "job type" is a good idea and
could be implemented easily.

(In reply to Martin Renvoize from comment #9)
> (In reply to Jonathan Druart from comment #1)
> > However there are some problems with this patch:
> > 1. We don't want *all* the index update to be in the background_jobs
> > table (we could add a filter on the list view)
> 
> Why not.. do we not have a cleanup process to clean down completed jobs
> after a period?

Yes, that could be done.

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


More information about the Koha-bugs mailing list