[Koha-bugs] [Bug 34335] Run Koha plugin method from CLI

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Jul 24 02:48:16 CEST 2023


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

--- Comment #12 from David Cook <dcook at prosentient.com.au> ---
(In reply to Jonathan Druart from comment #11)
> Can you provide some use cases?

I'm working on a plugin where we schedule a cronjob to execute a plugin method
every X minutes. (The "cronjob_nightly" hook isn't frequent/granular enough.)

Another use case would be allowing sysadmins to run tools manually on the
backend. Could be useful for batch tasks, infrequent tasks, etc.  

It could be useful for integrations with other systems on the server where you
want to avoid the overhead of a HTTP API. (This is something I considered in
2020.)

You could use it to configure a plugin in a more automation friendly way. So
you could use Ansible to unzip a plugin to a plugin_dir directory, install it
with "./misc/devel/install_plugins.pl", and then use this to configure it. 

--

Anyway, the first use case is the one I'm intentionally targeting. At the
moment, I've included this script in the plugin itself.

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


More information about the Koha-bugs mailing list