From: Bill Erickson Date: Tue, 1 Nov 2011 21:02:44 +0000 (-0400) Subject: Fine generator; raise multi-session mode recv timeout X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=8399d37d204e7190d4f1cb1c8efe245d3bdda94c;p=evergreen%2Fequinox.git Fine generator; raise multi-session mode recv timeout When fetching the batch of overdue circ IDs to process for fine generation, wait a little longer for the data to arrive, since it is a longer running DB query than most. Signed-off-by: Bill Erickson Signed-off-by: Lebbeous Fogle-Weekley --- diff --git a/Open-ILS/src/support-scripts/fine_generator.pl b/Open-ILS/src/support-scripts/fine_generator.pl index 3ab838a673..5d0ac8e816 100755 --- a/Open-ILS/src/support-scripts/fine_generator.pl +++ b/Open-ILS/src/support-scripts/fine_generator.pl @@ -60,7 +60,7 @@ if ($parallel == 1) { my $storage = OpenSRF::AppSession->create("open-ils.storage"); my $r = $storage->request('open-ils.storage.action.circulation.overdue.id_list'); - while (my $resp = $r->recv) { + while (my $resp = $r->recv(timeout => 600)) { my $circ_id = $resp->content; $multi_generator->request( 'open-ils.storage.action.circulation.overdue.generate_fines', $circ_id ); }