@@ -, +, @@ --- Koha/BackgroundJob.pm | 7 +++++++ 1 file changed, 7 insertions(+) --- a/Koha/BackgroundJob.pm +++ a/Koha/BackgroundJob.pm @@ -164,6 +164,13 @@ sub process { return {} if ref($self) ne 'Koha::BackgroundJob'; + if ( $self->status ne 'new' ) { + Koha::Logger->get->warn( + sprintf "This background job has been processed already, or is not waiting to be processed (%s - %s)", + $self->id, $self->status + ); + return; + } my $derived_class = $self->_derived_class; $args ||= {}; --