Lines 26-31
use C4::Context;
Link Here
|
26 |
use Koha::DateUtils qw( dt_from_string ); |
26 |
use Koha::DateUtils qw( dt_from_string ); |
27 |
use Koha::Exceptions; |
27 |
use Koha::Exceptions; |
28 |
use Koha::Exceptions::BackgroundJob; |
28 |
use Koha::Exceptions::BackgroundJob; |
|
|
29 |
use Koha::Plugins; |
29 |
|
30 |
|
30 |
use base qw( Koha::Object ); |
31 |
use base qw( Koha::Object ); |
31 |
|
32 |
|
Lines 164-169
sub process {
Link Here
|
164 |
|
165 |
|
165 |
return {} if ref($self) ne 'Koha::BackgroundJob'; |
166 |
return {} if ref($self) ne 'Koha::BackgroundJob'; |
166 |
|
167 |
|
|
|
168 |
# Our background jobs are called in forked processes |
169 |
# to ensure we have all plugin hooks and data we call |
170 |
# get_enabled_plugins at the star of processing |
171 |
# to populate the cache |
172 |
Koha::Plugins->get_enabled_plugins(); |
173 |
|
167 |
my $derived_class = $self->_derived_class; |
174 |
my $derived_class = $self->_derived_class; |
168 |
|
175 |
|
169 |
$args ||= {}; |
176 |
$args ||= {}; |
170 |
- |
|
|