[Koha-bugs] [Bug 27783] Introduce background job queues

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 6 10:31:32 CEST 2022


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

--- Comment #35 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
(In reply to David Cook from comment #34)
> (In reply to Jonathan Druart from comment #33)
> > I am not sure I am understanding what bring 'queue' that cannot be done with
> > the job_type.
> > 
> > We could have --job-type and a negation for this option.
> > 
> > perl background_jobs_worker.pl --job-type update_elastic_index
> > => Run only indexation tasks
> > 
> > perl background_jobs_worker.pl --not-job-type update_elastic_index
> > => Run all but indexation tasks
> 
> I think that would get really messy/confusing as the number of job
> types/queues grows.
> 
> I still think pointing background_jobs_worker.pl at a configuration file
> makes the most sense.

Right, as the job types grows, and we don't even have control of them (plugins)
we need some other way of grouping them more generally. Otherwise we cannot do
cool things like installing a plugin and it will just work. We would need to
set a worker for that. I'm sure you will insist on the ---not use for that, but
think how we would solve the real-time vs. no hurry use cases in a generic way.
It is plain straight-forward to just 'subscribe to a queue' for authors.

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


More information about the Koha-bugs mailing list