[Bug 43566] New: Remove sleep during background es indexing
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43566 Bug ID: 43566 Summary: Remove sleep during background es indexing Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: normal Priority: P5 - low Component: Architecture, internals, and plumbing Assignee: koha-bugs@lists.koha-community.org Reporter: nick@bywatersolutions.com QA Contact: testopia@bugs.koha-community.org Target Milestone: --- Our background worker scripts have a: sleep 10 built into them, but I can't find the reason why - we have another delay to prevent race conditions from bug 35819 - so maybe this was just an earlier failed attempt at that? I think we should remove the sleep as it doesn't seem necessary -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43566 Nick Clemens (kidclamp) <nick@bywatersolutions.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Depends on| |36549 Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=36549 [Bug 36549] es_indexer_daemon.pl leaks memory -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43566 Jonathan Druart <jonathan.druart@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jonathan.druart@gmail.com --- Comment #1 from Jonathan Druart <jonathan.druart@gmail.com> --- You want to sleep for the DB polling or you will search endlessly and overload the server. 122 while (1) { 123 if ($conn) { # STOMP 203 } else { # DB pooling 204 my $jobs = Koha::BackgroundJobs->search( { status => 'new', queue => \@queues } ); 205 while ( my $job = $jobs->next ) { 222 } 223 $pm->reap_finished_children; 224 sleep 10; 225 } -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.
participants (1)
-
bugzilla-daemon@bugs.koha-community.org