From 9f422ca624285bd20e68123bebf7a57da4c2741c Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Mon, 24 Apr 2023 09:27:43 +0000 Subject: [PATCH] Bug 33576: (QA follow-up) Polish comment, typo No test plan. Signed-off-by: Jonathan Druart --- C4/ImportBatch.pm | 3 +-- Koha/BackgroundJob/UpdateElasticIndex.pm | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/C4/ImportBatch.pm b/C4/ImportBatch.pm index 1bdd81b85c8..78e1dcf5a03 100644 --- a/C4/ImportBatch.pm +++ b/C4/ImportBatch.pm @@ -716,7 +716,7 @@ sub BatchCommitRecords { SetImportBatchStatus($batch_id, 'imported'); - # Moved final commit to the end + # final commit should be before Elastic background indexing in order to find job data $schema->txn_commit; if ( @biblio_ids ) { @@ -724,7 +724,6 @@ sub BatchCommitRecords { $indexer->index_records( \@biblio_ids, "specialUpdate", "biblioserver" ); } - return ($num_added, $num_updated, $num_items_added, $num_items_replaced, $num_items_errored, $num_ignored); } diff --git a/Koha/BackgroundJob/UpdateElasticIndex.pm b/Koha/BackgroundJob/UpdateElasticIndex.pm index 10ff70a6860..1439482dda4 100644 --- a/Koha/BackgroundJob/UpdateElasticIndex.pm +++ b/Koha/BackgroundJob/UpdateElasticIndex.pm @@ -29,7 +29,7 @@ Koha::BackgroundJob::UpdateElasticIndex - Update Elastic index This is a subclass of Koha::BackgroundJob. While most background jobs provide a I method, the ES indexing has its -own dedicated worker: misc/workers/es_index_daemon.pl +own dedicated worker: misc/workers/es_indexer_daemon.pl That worker handles all job processing. -- 2.25.1