From 2694c901ef70d06db149df379f0ecb351765ff54 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 25 Feb 2026 13:05:03 -0500 Subject: [PATCH] Bug 41920: Limit number of concurrent reports that can be run simultaneously for an instance of Koha As a continuation of bug 41919, we should limit the total number of simultaneous reports that can be run at a time. Test Plan: 1) Set total_running_reports_per_instance_limit to 2 in your koha-conf.xml 2) Create 3 long running reports like: SELECT COUNT(*) FROM items i1 JOIN items i2 JOIN items i3 JOIN items i4 JOIN items i5 JOIN items i6 3) Run each report in turn by opening a new tab, browsing to the reports module, and choosing to run that report 5) Note the first two continue to run, but the last one gives an error that you have too many reports running simultaneously! --- debian/templates/koha-conf-site.xml.in | 1 + etc/koha-conf.xml | 1 + .../modules/reports/guided_reports_start.tt | 2 ++ reports/guided_reports.pl | 27 +++++++++++++++---- 4 files changed, 26 insertions(+), 5 deletions(-) diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index 874a78668de..7f9bc6c469a 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -343,6 +343,7 @@ __END_SRU_PUBLICSERVER__ 0 0 + 0 0 0 + 0