|
Lines 164-169
sub process {
Link Here
|
| 164 |
|
164 |
|
| 165 |
return {} if ref($self) ne 'Koha::BackgroundJob'; |
165 |
return {} if ref($self) ne 'Koha::BackgroundJob'; |
| 166 |
|
166 |
|
|
|
167 |
if ( $self->status ne 'new' ) { |
| 168 |
Koha::Logger->get->warn( |
| 169 |
sprintf "This background job has been processed already, or is not waiting to be processed (%s - %s)", |
| 170 |
$self->id, $self->status |
| 171 |
); |
| 172 |
return; |
| 173 |
} |
| 167 |
my $derived_class = $self->_derived_class; |
174 |
my $derived_class = $self->_derived_class; |
| 168 |
|
175 |
|
| 169 |
$args ||= {}; |
176 |
$args ||= {}; |
| 170 |
- |
|
|