Bugzilla – Attachment 167499 Details for
Bug 36484
Even with RabbitMQ enabled, we should should poll the database for update_elastic_index jobs at koha-es-indexer startup
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36484: Switch to fetch all outstanding (New) background jobs based on type = 'update_elastic_index'
Bug-36484-Switch-to-fetch-all-outstanding-New-back.patch (text/plain), 1.20 KB, created by
Alex Buckley
on 2024-06-05 22:11:40 UTC
(
hide
)
Description:
Bug 36484: Switch to fetch all outstanding (New) background jobs based on type = 'update_elastic_index'
Filename:
MIME Type:
Creator:
Alex Buckley
Created:
2024-06-05 22:11:40 UTC
Size:
1.20 KB
patch
obsolete
>From 494f9a9c3074e334ac1c1aaafd3a24023479c9f7 Mon Sep 17 00:00:00 2001 >From: Alex Buckley <alexbuckley@catalyst.net.nz> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 36484
:
164231
| 167499