[Koha-bugs] [Bug 25245] Add a plugin hook to allow running code on a nightly basis

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Dec 1 09:31:13 CET 2020


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

--- Comment #52 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
An easy (but lazy) implementation could be:
- Have a Koha::BackgroundJob::Plugin
- Your plugin class inherit it and has a job_type="plugin|Your::Plugin::Class"
- Your plugin implement ->process

You can now call ->enqueue to enqueue the job, and the worker will process it
when possible.

However we don't have the "at" part here, it should be done on a separate bug
report with bug 1993 in mind.

I think Tomas's idea was to have REST API routes to enqueue new jobs.

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


More information about the Koha-bugs mailing list