Bugzilla – Attachment 136137 Details for
Bug 30974
Job size not correct for indexing jobs
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30974: Set size for indexing jobs to 1
Bug-30974-Set-size-for-indexing-jobs-to-1.patch (text/plain), 1.35 KB, created by
Martin Renvoize (ashimema)
on 2022-06-16 09:54:04 UTC
(
hide
)
Description:
Bug 30974: Set size for indexing jobs to 1
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-06-16 09:54:04 UTC
Size:
1.35 KB
patch
obsolete
>From 8e08604ee2faa537df5a647caf0eee263c78c320 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 16 Jun 2022 10:22:02 +0200 >Subject: [PATCH] Bug 30974: Set size for indexing jobs to 1 > >job's size is the number of records to index, but when finished the progress is always set to 1. > >Wich leads to: finished 1/42 > >Test plan: >Don't apply this patch >Use the batch item modification tool to update more than 1 item >Notice that the new indexing job has a size of the number of items you >modified >When finished, the job detail shows "Finished. 1/X" >Apply this patch, repeat >Notice that now the progress shows 0/1 before the job is done, then 1/1 >when finished > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > Koha/BackgroundJob/UpdateElasticIndex.pm | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > >diff --git a/Koha/BackgroundJob/UpdateElasticIndex.pm b/Koha/BackgroundJob/UpdateElasticIndex.pm >index c3a77a43c1..432d34fa97 100644 >--- a/Koha/BackgroundJob/UpdateElasticIndex.pm >+++ b/Koha/BackgroundJob/UpdateElasticIndex.pm >@@ -107,7 +107,7 @@ sub enqueue { > my @record_ids = @{ $args->{record_ids} }; > > $self->SUPER::enqueue({ >- job_size => scalar @record_ids, >+ job_size => 1, > job_args => {record_server => $record_server, record_ids => \@record_ids}, > }); > } >-- >2.20.1
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 30974
:
136126
| 136137