]> git.koha-community.org Git - koha.git/commit
Bug 30692: Fix progress for ES indexing tasks
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 5 May 2022 14:07:11 +0000 (11:07 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Thu, 5 May 2022 15:11:38 +0000 (16:11 +0100)
commitbb74a50fbd1f3c7db272026a72d27a67d611806a
tree3d6a2c02a5cd2da2f828c579a8f27168f354d6eb
parent815ed51621ea380dce4bf8322c8734b9997ebbe5
Bug 30692: Fix progress for ES indexing tasks

This patch makes the ES indexing task record progress properly.

To test:
1. Have ES setup
2. Edit a record making any change that would trigger indexing
3. Go to Administration > Background jobs
=> FAIL: The task status is 'Finished' but progress shows '0/1'.
4. Apply this patch
5. Restart the default worker:
   $ koha-worker --restart kohadev
6. Repeat 2 and 3
=> SUCCESS: Things work the same, but progress is '1/1'
7. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/BackgroundJob/UpdateElasticIndex.pm