Bug 35479: Log start, end, and any failures for each plugin's nightly cronjob
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 4 Dec 2023 17:41:32 +0000 (12:41 -0500)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 13 Feb 2024 10:24:17 +0000 (11:24 +0100)
commitc0d2ee4c074f965b69a0829d251d1de323ecaaa7
tree3b680b862aac02022fe4cb78c734e95c449248c8
parent658ad821beb10aa3d079d7e03fe79d5aea04b61a
Bug 35479: Log start, end, and any failures for each plugin's nightly cronjob

When running the plugins_nightly.pl cronjob, we should record the plugins that have a nightly method, logging the start and end of each plugins routine

Test Plan:
1) Enable CronjobLog
2) Install a plugin with a nightly cronjob ( e.g.
   https://github.com/bywatersolutions/koha-plugin-book-list-printer )
3) Run plugins_nightly.pl
4) Note new entries in the cronjob viewer for the start and end of the
   plugin's nightly cronjob run
5) Edit the plugin, add a line like "die 'this is a test';" to the
   plugin's nightly cronjob
6) Run plugins_nightly.pl
7) View the action logs, not the log for the error you added!

Signed-off-by: Pedro Amorim <pedro.amorim@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit c4b777b0560dd9936ae08e2fd530fd00f52df569)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/plugins_nightly.pl