Koha-clms/Koha/BackgroundJob
Nick Clemens aef17e613d
Bug 40846: Improve handling of ignored records
Currently, a job is marked failed if there are no records added or updated.
We should take ignored records into account.

Additionally, I mark the job failed when the number of records processed
doesn't equal the number of records in the batch.

To test:
1) Export some records from your Koha, include some with items
2) Stage and import those records into Koha, matching on biblionumber,
   ignoring matcheds, updating items
3) View the import job, it is marked failed
4) View the batch, all records imported
5) Apply patch, restart all
6) Stage/import as before
7) Job is now marked finished
8) Records imported as before

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
2026-01-21 07:44:20 -07:00
..
BatchCancelHold.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
BatchDeleteAuthority.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
BatchDeleteBiblio.pm Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
BatchDeleteItem.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
BatchUpdateAuthority.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
BatchUpdateBiblio.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
BatchUpdateBiblioHoldsQueue.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
BatchUpdateItem.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
CreateEHoldingsFromBiblios.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ErmSushiHarvester.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ImportKBARTFile.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
MARCImportCommitBatch.pm Bug 40846: Improve handling of ignored records 2026-01-21 07:44:20 -07:00
MARCImportRevertBatch.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
PseudonymizeStatistic.pm Bug 41238: Update progress for peseudonmyzation bacgkround jobs 2025-12-17 13:24:30 -07:00
StageMARCForImport.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
TestTransport.pm Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
UpdateElasticIndex.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00