@@ -, +, @@ --- Koha/BackgroundJob/UpdateElasticIndex.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) --- a/Koha/BackgroundJob/UpdateElasticIndex.pm +++ a/Koha/BackgroundJob/UpdateElasticIndex.pm @@ -80,8 +80,8 @@ sub process { } } else { $self->step; - # FIXME This is not correct if some record_ids have been skipped - $report->{total_success} = scalar @record_ids; + $self->delete; + return; } my $data = $self->decoded_data; --