[Koha-bugs] [Bug 15529] Process Message Queue may send duplicate emails if process is launched twice

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Aug 28 04:39:28 CEST 2018


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

--- Comment #8 from Alex Buckley <alexbuckley at catalyst.net.nz> ---
Created attachment 78212
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=78212&action=edit
Bug 15529 - Lock /var/lock/koha/<instance>/messagequeue.lock while running
process_message_queue.pl

The script loops through every enabled instance. It checks if the 
messagequeue.lock file is locked in the instance directory.

If not then the cronjob runs.

If the lock file is locked then this is logged and a email is sent out.

Test plan:
1. In two terminals open koha-shell and try to run
./process_message_queue.pl and notice you can run the script multiple
times simulataneously without a warning/error being displayed

2. Apply patch

3. Repeast step 1 and notice that the second of the two scripts to be
run will output text saying './process_message_queue.pl is already
running. Exiting'

In this case the aforementioned text is displayed and the body of the
cronjob is not run.

4. The first cronjob script to run, runs without issues

Sponsored-By: Parliament Library

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


More information about the Koha-bugs mailing list