there could be many pending events, up the timeout for inititial fetching
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Nov 2009 02:42:17 +0000 (02:42 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Tue, 3 Nov 2009 02:42:17 +0000 (02:42 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@14731 dcc99617-32d9-48b4-a31d-7c20da2025e4

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

index e821d46..73176f1 100644 (file)
@@ -513,7 +513,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 }
+        { idlist=> 1, timeout => 1800 }
     );
 }
 __PACKAGE__->register_method(