[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
Wed Dec 2 00:27:41 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=25245
--- Comment #53 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #52)
> 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.
Could you elaborate on this part? The koha-worker code would need to be updated
to support that job_type="plugin|Your::Plugin::Class", right?
> However we don't have the "at" part here, it should be done on a separate
> bug report with bug 1993 in mind.
>
I'd love to do a POC for this. I'll comment on Bug 1993. (Now to find the
time/energy...)
> I think Tomas's idea was to have REST API routes to enqueue new jobs.
+1
I like the idea although we'd want that API route to be private/highly
privileged. Otherwise it might be accidentally abused. (I have been thinking
how Koha could use a better separation of private/public API routes...)
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list