From 494f9a9c3074e334ac1c1aaafd3a24023479c9f7 Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 5 Jun 2024 22:11:04 +0000 Subject: [PATCH] Bug 36484: Switch to fetch all outstanding (New) background jobs based on type = 'update_elastic_index' The previous patch polled the database based on background jobs having queue = 'elastic_index', however, some catalogue changes might have a queue = 'default'. So it is better to poll the database for 'new' background jobs having type = 'update_elastic_index' Sponsored-by: Auckland University of Technology, New Zealand --- misc/workers/es_indexer_daemon.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/workers/es_indexer_daemon.pl b/misc/workers/es_indexer_daemon.pl index 0deefac989a..6915c61d53f 100755 --- a/misc/workers/es_indexer_daemon.pl +++ b/misc/workers/es_indexer_daemon.pl @@ -240,7 +240,7 @@ sub commit { } sub process_outstanding { - my $jobs = Koha::BackgroundJobs->search({ status => 'new', queue => 'elastic_index' }); + my $jobs = Koha::BackgroundJobs->search({ status => 'new', type => 'update_elastic_index' }); while ( my $job = $jobs->next ) { commit($job); } -- 2.30.2