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.