[Koha-bugs] [Bug 31453] Add ability to skip processing messages in message queue based on message contents

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 24 20:35:53 CEST 2022


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

--- Comment #1 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 139736
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=139736&action=edit
Bug 31453: Add ability to skip processing messages in message queue based on
message contents

It would be very useful to be able to tell process_message_queue.pl to skip
processing some messages. This is particularly useful where a plugin handles
sending some message using the before_send_messages hook, but while that plugin
is processing, more messages meant for the plugin might be queued. At that
point, control moves back to the script and SendQueuedMessages is called, and
those messages end up being processed there instead of by the plugin.

Test Plan:
1) Apply this patch
2) Queue two messages, each with a unique word
3) Run process_message_queue --content-not-like "WORD"
   where WORD is a unique word in one of the two message
4) Note the message containing "WORD" was not processed
5) prove t/db_dependent/Letters.t

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


More information about the Koha-bugs mailing list