Koha/misc/cronjobs
Tomas Cohen Arazi a80a96b933
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>
2022-09-19 15:13:52 -03:00
..
holds
recalls
rss
social_data
thirdparty Bug 31356: Use hold expiration date instead of adding days to the waiting date 2022-08-31 14:30:26 -03:00
advance_notices.pl
archive_purchase_suggestions.pl
automatic_checkin.pl
automatic_item_modification_by_age.pl
automatic_renewals.pl Bug 30755: (follow-up) Add a results hash to automatic renewals 2022-09-19 15:11:06 -03:00
backup.sh
batch_anonymise.pl Bug 30042: Remove Date::Calc dependency in batch_anonymize.pl 2022-09-07 13:23:31 -07:00
build_browser_and_cloud.pl Bug 29697: Use flag embed_items 2022-07-22 15:24:11 -03:00
cart_to_shelf.pl
check-url-quick.pl Bug 29697: Replace GetMarcBiblio occurrences with $biblio->metadata->record 2022-07-22 15:24:11 -03:00
cleanup_database.pl
cloud-kw.pl
cloud-sample.conf
CONFIGURE.gmail
create_koc_db.pl
crontab.example
delete_items.pl
delete_patrons.pl
delete_records_via_leader.pl
edi_cron.pl
fines.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
gather_print_notices.pl
import_webservice_batch.pl
longoverdue.pl
membership_expiry.pl
merge_authorities.pl
notice_unprocessed_suggestions.pl
overdue_notices.pl Bug 28327: Unify CSV delimiter special behavior for tabulation 2022-08-19 15:53:12 -03:00
patron_emailer.pl Bug 31282: Fix broken characters in patron_emailer.pl verbose mode 2022-08-19 09:56:13 -03:00
plugins_nightly.pl
printoverdues.sh
process_message_queue.pl Bug 31342: Add execution locking to process_message_queue.pl 2022-09-19 15:13:52 -03:00
purge_suggestions.pl
reconcile_balances.pl
remove_temporary_edifiles.pl
runreport.pl
serialsUpdate.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
share_usage_with_koha_community.pl
sitemap.pl
staticfines.pl Bug 30718: Use flatpickr's altInput 2022-08-19 08:26:31 -03:00
stockrotation.pl
update_patrons_category.pl Bug 31249: Use cronlogaction on update_patrons_category.pl 2022-08-05 11:53:15 -03:00
update_totalissues.pl
writeoff_debts.pl