Koha-clms/misc
Tomas Cohen Arazi 75353ccac8 Bug 31342: Add execution locking to process_message_queue.pl
This patch makes the script use an execution lock as provided by
Koha::Script. Previous attempt got too complex and contentious, and
given we have a simple way to achieve the same thing, I decided to
submit an alternative approach.

To test:
1. Apply this patch
2. Add the following content to misc/cronjobs/process_message_queue.pl
   on line 83:

  sleep 100;

3. Save the file
4. Have two terminals open
5. On the first one, run:
   $ kshell
  k$ misc/cronjobs/process_message_queue.pl
6. On the second one, run the same
=> SUCCESS: The second one dies telling it had to skip the run
7. Undo your changes:
   $ git checkout misc/cronjobs/process_message_queue.pl
8. Sign off :-D

Sponsored-by: ByWater Solutions
Signed-off-by: Liz Rea <liz@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit a80a96b933)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
(cherry picked from commit 9c6d9f5106)
Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
2022-11-14 17:17:11 +01:00
..
admin Bug 31325: Fix koha-preferences get 2022-10-12 16:34:26 +02:00
bin
…
cronjobs Bug 31342: Add execution locking to process_message_queue.pl 2022-11-14 17:17:11 +01:00
devel
…
interface_customization
…
load_testing
…
maintenance Bug 31299: Fix duplicate output in search_for_data_inconsistencies.pl 2022-11-14 17:05:26 +01:00
migration_tools Bug 30939: Fix use statement for DelAuthority 2022-08-11 15:06:01 +02:00
release_notes Update release notes for 21.11.13 release 2022-10-23 00:28:54 +02:00
search_tools Bug 18984: Remove NORMARC support 2021-10-07 15:36:40 +02:00
translator Fix translations for Koha 21.11.13 2022-10-22 12:02:55 +02:00
add_date_fields_to_marc_records.pl
…
background_jobs_worker.pl Bug 28445: Use the task queue for the batch delete and update items tool 2021-10-18 11:28:40 +02:00
batchCompareMARCvsFrameworks.pl
…
batchDeleteUnusedSubfields.pl
…
batchImportMARCWithBiblionumbers.pl
…
batchRebuildBiblioTables.pl
…
batchRebuildItemsTables.pl
…
batchRepairMissingBiblionumbers.pl
…
batchdeletebiblios.pl
…
check_sysprefs.pl
…
commit_file.pl Bug 29325: Fix commit_file.pl 2022-10-14 22:22:04 +02:00
export_borrowers.pl Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-10-19 05:07:19 +02:00
export_records.pl
…
exportauth.pl
…
import_patrons.pl
…
koha-install-log
…
kohalib.pl
…
link_bibs_to_authorities.pl Bug 14957: Merge rules system for merging of MARC records 2021-10-26 16:46:02 +02:00
load_yaml.pl Bug 29207: Getopt::Long should not ignore cases 2021-10-25 14:08:06 +02:00
mod_zebraqueue.pl
…
perlmodule_ls.pl
…
perlmodule_rm.pl
…
recreateIssueStatistics.pl
…
sax_parser_print.pl
…
sax_parser_test.pl
…
sip_cli_emulator.pl
…
stage_file.pl
…
z3950_responder.pl Bug 29207: Getopt::Long should not ignore cases 2021-10-25 14:08:06 +02:00