[Koha-bugs] [Bug 30350] Do not hardcode job types

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 25 14:06:33 CET 2022


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 132246
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=132246&action=edit
Bug 30350: Avoid hardcoding job types in background_jobs_worker.pl

Currently, background_jobs_worker.pl has a hardcoded list of jobs it can
process. Koha::BackgroundJob already has a method that can be used to
extract such list. Using it would avoid having to maintain two lists,
and it would also make it easier to inject plugin tasks as well.

To test:
1. Apply the patch
2. Restart the koha-worker
3. Run one of the batch operations that make use of the background jobs
   (I used batch item delete)
=> SUCCESS: Things work, no change
4. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

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


More information about the Koha-bugs mailing list