]> git.koha-community.org Git - koha.git/commit
Bug 31345: Add ability to exit process_message_queue.pl early if any plugin before_se...
authorKyle M Hall <kyle@bywatersolutions.com>
Thu, 11 Aug 2022 19:43:15 +0000 (15:43 -0400)
committerLucas Gass <lucas@bywatersolutions.com>
Tue, 28 May 2024 21:10:16 +0000 (21:10 +0000)
commitda01dcea79430ed46a03cdb6d4ad47b8da5672fa
tree59bdb628ba9fbb2b481519130ce243b5719b3256
parente13b6f6d9cc4bd05fe093300e000aa2dc07b3656
Bug 31345: Add ability to exit process_message_queue.pl early if any plugin before_send_messages hook fails

Sometimes it would be better for process_message_queue.pl to stop if a plugin hook fails rather than continue processing. It would be nice if that was a command line option.

Test Plan:
1) Install any plugin with a before_send_messages hook
2) Modify the plugin, add a 'die;' statement at the start of the
   before_send_messages method of the plugin.
3) Run process_message_queue.pl as usual
4) Note the exit code is 0
5) Run it again with the new -e setting
6) Note the exit code is 1

Signed-off-by: Brendan Lawlor <blawlor@clamsnet.org>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 83f9535fabc37be46ab8154d940a7ff614617eb2)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit ff2cce52c56e0cbfb7c8f760618b4b1e8db44d36)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
misc/cronjobs/process_message_queue.pl