From 911c7fe451a708b8aa0d2cc507280c2d304ef02b Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 25 Feb 2026 12:30:24 -0500 Subject: [PATCH] Bug 41919: Limit number of current reports a single user can run simultaneously Building on bug 41918, it would be good to limit the number of reports a given user can run at a time. This control should be conf file based as it is tied to the server resources provided by whoever administers the server. Test Plan: 1) Set total_running_reports_per_user_limit to 3 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 | 33 ++++++++++++++++--- 4 files changed, 32 insertions(+), 5 deletions(-) diff --git a/debian/templates/koha-conf-site.xml.in b/debian/templates/koha-conf-site.xml.in index b51ff2bdb2f..874a78668de 100644 --- a/debian/templates/koha-conf-site.xml.in +++ b/debian/templates/koha-conf-site.xml.in @@ -342,6 +342,7 @@ __END_SRU_PUBLICSERVER__ 0 + 0 0 + 0