Fine Generator timeout is different in single/parallel modes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Eg 2.2+
/openils/
When the fine generator is run with parallel=1 in opensrf.xml, there is no timeout specified on line 51:
if ($parallel == 1) {
my $r = OpenSRF::AppSession
------> while (!$r->complete) { $r->recv };
} else {
But, when using 2 or more generators at the same time, a 10 minute timeout is specified on line 63:
} else {
my $multi_generator = OpenSRF:
app => 'open-ils.storage',
cap => $parallel,
api_level => 1,
);
my $storage = OpenSRF:
my $r = $storage-
------> while (my $resp = $r->recv(timeout => 600)) {
my $circ_id = $resp->content;
}
This causes parallel fine generation to fail if the database is too slow to respond. I realize the timeout could be increased in that case, but shouldn't both paths behave the same?
tags: | added: circulation needsdiscussion |
Changed in evergreen: | |
status: | Triaged → Confirmed |
This sounds like a good question.