[Koha-bugs] [Bug 31345] Add ability to exit process_message_queue.pl early if any plugin before_send_messages hook fails
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Feb 8 20:00:40 CET 2024
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=31345
Brendan Lawlor <blawlor at clamsnet.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #155227|0 |1
is obsolete| |
--- Comment #7 from Brendan Lawlor <blawlor at clamsnet.org> ---
Created attachment 161952
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=161952&action=edit
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 at clamsnet.org>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list