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)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Wed, 31 Jan 2024 13:44:40 +0000 (14:44 +0100)
commitc4b777b0560dd9936ae08e2fd530fd00f52df569
tree6bbfb9fcf3fafdb15919172c4589cc47d21e346e
parent3385142d7c06c3723ecc83399a6d8bbbb5a8f4d2
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>
misc/cronjobs/plugins_nightly.pl