JBAS-769 Clear holds shelf increase query timeout
authorBill Erickson <berickxx@gmail.com>
Mon, 3 Aug 2015 15:03:54 +0000 (11:03 -0400)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Increase the timeout for the query which finds which holds need clearing
from 1 minute to 10 minutes.  This mostly affects non-production
servers, which are often slower.

Note the query is still subject any configured PG statement_timeout
settings.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Circ/Holds.pm

index 7414d93..a0fb2c5 100644 (file)
@@ -2183,7 +2183,7 @@ sub fetch_captured_holds {
                 
         };  
     }
-    my $hold_ids = $e->json_query( $query );
+    my $hold_ids = $e->json_query( $query, {timeout => 600} );
     
      if ($self->api_name =~ /wrong_shelf/) {
        # fetch holds whose current_shelf_lib is $org, but whose pickup