[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 05:41:05 CET 2020


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

--- Comment #51 from David Cook <dcook at prosentient.com.au> ---
(In reply to Martin Renvoize from comment #50)
> Could you possibly write an example of how you'd expect a plugin to use the
> new task queue stuff as an alternative to this?  I'm happy for this bug to
> be replaced with such an example.. right now I don't know enough of how that
> code fits together to really do such an example myself.

I don't think it's possible at the moment, but here's what I would envision:

1. Have a module/function registry for koha-worker to check when it gets a
message
2. A plugin registers a module/function when it's installed
3. The plugin provides an API where it gives an immediate response and stages
some data but does the actual processing via the task queue (ie koha-worker)
4. The koha-worker verifies the message against the registry, and invokes the
code provided by the Koha plugin

I think that Tomas may have had a similar idea?

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


More information about the Koha-bugs mailing list