these batch calls require a wide timeout window to complete, especially for things...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Feb 2010 22:29:01 +0000 (22:29 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 5 Feb 2010 22:29:01 +0000 (22:29 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_6@15469 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Application/Trigger.pm

index 4b6d097..e430109 100644 (file)
@@ -424,7 +424,7 @@ sub create_batch_events {
         $class =~ s/::/_/go;
 
         my $method = 'search_'. $class;
-        my $object_ids = $editor->$method( $filter, {idlist => 1, timeout => 1800} );
+        my $object_ids = $editor->$method( $filter, {idlist => 1, timeout => 7200} );
 
         for my $o_id (@$object_ids) {
 
@@ -523,7 +523,7 @@ sub pending_events {
 
     return $editor->search_action_trigger_event(
         [{ state => 'pending', run_time => {'<' => 'now'} }, { order_by => { atev => [ qw/run_time add_time/] } }],
-        { idlist=> 1, timeout => 1800 }
+        { idlist=> 1, timeout => 7200 }
     );
 }
 __PACKAGE__->register_method(