[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 May 5 09:14:22 CEST 2020


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

--- Comment #32 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
I didn't want to get stuck in the queue waiting for any of the schedulers
rewrite bugs so it was a deliberate choice not to base this code upon them. 
Cron is a simple system and this is really designed for simple use cases... the
idea being we just want a task to run each 'night', but we're not too fussy as
to when.

We already have a hook added to trigger plugin actions prior to the fines job
and I like the idea of slowly adding such triggers to the start/end of other
regular tasks so one can dovetail workloads as required.. but for general
'process stuff daily' task I personally feel this is enough.

You can happily gain a little more control over the scheduling within your
plugin code by doing a date comparison as the first part of the job in your
plugin so one could for instance set the tasks to take place ever X days rather
than nightly, or every Friday for example.

It would also allow simple installation of the existing recalls plugin which
currently requires lots of background manipulation to install.

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


More information about the Koha-bugs mailing list