From c3bef6ef15fc0af2af6ef67394f8c379f7c95f71 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 5 Feb 2026 16:10:59 -0500 Subject: [PATCH] Bug 41781 - Holds queue builder ( build_holds_queue.pl ) fails if HoldsQueueParallelLoopsCount is greater than 1 If HoldsQueueParallelLoopsCount is set to a value greater than 1, build_holds_queue.pl will fail with the message: Can't locate object method "new" via package "Parallel::ForkManager" (perhaps you forgot to load "Parallel::ForkManager"?) at /kohadevbox/koha/C4/HoldsQueue.pm line 205. Test Plan: 1) Run misc/cronjobs/holds/build_holds_queue.pl 2) Note the error message 3) Run misc/cronjobs/holds/build_holds_queue.pl 4) Note the error message is gone! Signed-off-by: Lucas Gass --- C4/HoldsQueue.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/HoldsQueue.pm b/C4/HoldsQueue.pm index 22f7f310541..c1d46954d1d 100644 --- a/C4/HoldsQueue.pm +++ b/C4/HoldsQueue.pm @@ -48,6 +48,7 @@ use Koha::Patrons; use List::Util qw( shuffle ); use List::MoreUtils qw( any ); use Algorithm::Munkres qw(); +use Parallel::ForkManager; =head1 FUNCTIONS -- 2.47.3