[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
Wed Feb 7 21:45:25 CET 2024


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

Brendan Lawlor <blawlor at clamsnet.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |blawlor at clamsnet.org

--- Comment #5 from Brendan Lawlor <blawlor at clamsnet.org> ---
Tried testing, but not sure if I did it right.

Notes:

I was able to install the kitchen sink plugin in ktd.
I added some lines to the beginning of sub before_send_messages like
    print "die! " . Data::Dumper::Dumper("dead");
    die;

Then cd to /koha/misc/cronjobs and run
perl process_message_queue.pl
Argument "{VERSION}" isn't numeric in int at
/kohadevbox/koha/Koha/Plugins/Base.pm line 339.
Argument "{VERSION}" isn't numeric in int at
/kohadevbox/koha/Koha/Plugins/Base.pm line 339.
die!$VAR1 = ' dead';
Died at
/kohadevbox/koha_plugin/dev-koha-plugin-kitchen-sink/Koha/Plugin/Com/ByWaterSolutions/KitchenSink.pm
line 605.

It doesn't show the exit code but I guess that's what exit code 0 looks like.

Applied patch and ran 
perl -e process_message_queue.pl

That didn't output anything, is that what's expected for exit code 1?

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


More information about the Koha-bugs mailing list