diff --git a/Koha/BackgroundJob.pm b/Koha/BackgroundJob.pm index f5840fff02..e1274ba144 100644 --- a/Koha/BackgroundJob.pm +++ b/Koha/BackgroundJob.pm @@ -246,7 +246,7 @@ Makes the job record as finished. If the job status is I, it is kept. sub finish { my ( $self, $data ) = @_; - $self->status('finished') unless $self->status eq 'cancelled'; + $self->status('finished') unless $self->status eq 'cancelled' or $self->status eq 'failed'; return $self->set( {